mysqlclient를 깔려고 하면 에러 .. 왜그런지 모르겠다 ㅠ
python 3.6.5 버전에서 특별히 에러나는건지는 모르겠다..;
pip install mysqlclient
ERROR: Command errored out with exit status 1:
command: /Users/paige/development/django-practice/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-install-jsmgi974/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-install-jsmgi974/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 /private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-record-qamno6h1/install-record.txt --single-version-externally-managed --compile --install-headers /Users/paige/development/django-practice/venv/include/site/python3.6/mysqlclient
cwd: /private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-install-jsmgi974/mysqlclient/
Complete output (46 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.6
copying _mysql_exceptions.py -> build/lib.macosx-10.6-intel-3.6
creating build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/compat.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb
creating build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.6-intel-3.6/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.6-intel-3.6
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/usr/local/opt/zlib/include -Dversion_info=(1,3,12,'final',0) -D__version__=1.3.12 -I/usr/local/Cellar/mariadb/10.4.11/include/mysql -I/usr/local/Cellar/mariadb/10.4.11/include/mysql/.. -I/Users/paige/development/django-practice/venv/include -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c _mysql.c -o build/temp.macosx-10.6-intel-3.6/_mysql.o
In file included from _mysql.c:29:
/usr/local/Cellar/mariadb/10.4.11/include/mysql/mysql.h:444:3: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MYSQL_CLIENT_PLUGIN_HEADER
^
/usr/local/Cellar/mariadb/10.4.11/include/mysql/mysql.h:440:16: note: expanded from macro 'MYSQL_CLIENT_PLUGIN_HEADER'
int (*deinit)(); \
^
1 warning generated.
In file included from _mysql.c:29:
/usr/local/Cellar/mariadb/10.4.11/include/mysql/mysql.h:444:3: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MYSQL_CLIENT_PLUGIN_HEADER
^
/usr/local/Cellar/mariadb/10.4.11/include/mysql/mysql.h:440:16: note: expanded from macro 'MYSQL_CLIENT_PLUGIN_HEADER'
int (*deinit)(); \
^
1 warning generated.
gcc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g -L/usr/local/opt/zlib/lib -I/usr/local/opt/zlib/include build/temp.macosx-10.6-intel-3.6/_mysql.o -L/usr/local/Cellar/mariadb/10.4.11/lib -lmariadb -lz -liconv -lssl -lcrypto -o build/lib.macosx-10.6-intel-3.6/_mysql.cpython-36m-darwin.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/paige/development/django-practice/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-install-jsmgi974/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-install-jsmgi974/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 /private/var/folders/5h/pljq93m94pg6gk40yxbd78m80000gn/T/pip-record-qamno6h1/install-record.txt --single-version-externally-managed --compile --install-headers /Users/paige/development/django-practice/venv/include/site/python3.6/mysqlclient Check the logs for full command output.
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient
이렇게 하니깐 해결 ..
'개발이나하자.. > others' 카테고리의 다른 글
[window]윈도우에서 파이썬 설치 및 환경변수 설정하기 | 파이참 파이썬 세팅 | venv 실행 (0) | 2020.09.02 |
---|---|
[postgres] MAC postgres 설치 & 데이터베이스 생성 & django + postgreSQL 데이터베이스 연결 (0) | 2020.08.29 |
[CS 기초] Trees Basics | 트리 알고리즘 기초 | DFS Depth First Search 이론 | 깊이 우선 탐색 (0) | 2020.05.26 |
[mysql] AWS RDS + django 에서 한글이 인식이 안 될 때 (0) | 2020.04.22 |
[CS 기초] Linked List (0) | 2020.01.10 |