![erro: comando 'x86_64-linux-gnu-gcc' falhou com status de saída 1 (para lssl e lcrypto)](https://rvso.com/image/922424/erro%3A%20comando%20'x86_64-linux-gnu-gcc'%20falhou%20com%20status%20de%20sa%C3%ADda%201%20(para%20lssl%20e%20lcrypto).png)
Tentei instalar o que foi sugerido, libssl-dev
sendo a resposta mais comum, mas ainda recebo o erro:
PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int);
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/MySQLdb/_mysql.o -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl -o build/lib.linux-x86_64-2.7/MySQLdb/_mysql.so
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cujwKQ/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cujwKQ/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dlLRwV/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Responder1
Tente sudo apt-get install python3.X-dev
onde X está sua subversão python3.
Responder2
tente isso
sudo apt-get install libgmp-dev portaudio19-dev libssl-dev python3-dev
Responder3
Pode ser libssl:
sudo apt-get install libssl-dev
Tente também isto:
sudo apt-get install portaudio19-dev
Responder4
Instale estes pacotes:
sudo apt-get install libpcap-dev libssl-dev