![오류: 'x86_64-linux-gnu-gcc' 명령이 종료 상태 1로 실패했습니다(lssl 및 lcrypto의 경우).](https://rvso.com/image/922424/%EC%98%A4%EB%A5%98%3A%20'x86_64-linux-gnu-gcc'%20%EB%AA%85%EB%A0%B9%EC%9D%B4%20%EC%A2%85%EB%A3%8C%20%EC%83%81%ED%83%9C%201%EB%A1%9C%20%EC%8B%A4%ED%8C%A8%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4(lssl%20%EB%B0%8F%20lcrypto%EC%9D%98%20%EA%B2%BD%EC%9A%B0)..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