본문 바로가기
MySql

MySQL mysql-python 설치 오류 : -lssl에 대한 라이브러리를 찾을 수 없음

by 베이스 공부 2020. 10. 31.
반응형

mysql-python을 설치하는 데 문제가 있습니다. 새 virtualenv를 생성하고 mysql-python을 설치할 때 ... 다음은 오류 메시지입니다.

(env)$ pip install mysql-python
Collecting mysql-python
...

clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk build/temp.macosx-10.12-x86_64-2.7/_mysql.o -L/usr /local/Cellar/mysql/5.7.16/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.12-x86_64-2.7/_mysql.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1

homebrew를 사용하여 다음을 설치했습니다.

이미 brew link 를 시도했지만 brew가이를 거부합니다.

OS는 MacOS Sierra입니다.

누구든지 도울 수 있습니까? 감사!

 

해결 방법

 

다음 단계로 해결했습니다.

brew uninstall mysql
brew install mysql-connector-c
pip install mysql-python
brew unlink mysql-connector-c
brew install mysql


이것이 올바른 방법인지 확실하지 않지만 이것이 내가 그것을 해결할 수 있었던 방법입니다.

 

참조 페이지 https://stackoverflow.com/questions/40587558

 

 

반응형

댓글