![ошибка: команда 'x86_64-linux-gnu-gcc' завершилась неудачно со статусом выхода 1 (для lssl и lcrypto)](https://rvso.com/image/922424/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0%3A%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%B0%20'x86_64-linux-gnu-gcc'%20%D0%B7%D0%B0%D0%B2%D0%B5%D1%80%D1%88%D0%B8%D0%BB%D0%B0%D1%81%D1%8C%20%D0%BD%D0%B5%D1%83%D0%B4%D0%B0%D1%87%D0%BD%D0%BE%20%D1%81%D0%BE%20%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81%D0%BE%D0%BC%20%D0%B2%D1%8B%D1%85%D0%BE%D0%B4%D0%B0%201%20(%D0%B4%D0%BB%D1%8F%20lssl%20%D0%B8%20lcrypto).png)
Я попробовал установить все, что было предложено ( libssl-dev
это наиболее распространенный ответ), но все равно получаю ошибку:
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.
решение1
Попробуйте указать sudo apt-get install python3.X-dev
, где X — это ваша версия Python3.
решение2
попробуй это
sudo apt-get install libgmp-dev portaudio19-dev libssl-dev python3-dev
решение3
Может быть libssl:
sudo apt-get install libssl-dev
Попробуйте также это:
sudo apt-get install portaudio19-dev
решение4
Установите эти пакеты:
sudo apt-get install libpcap-dev libssl-dev