Skip to content

Instantly share code, notes, and snippets.

@LondonAppDev
Created May 28, 2015 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LondonAppDev/fc64bbf28199b3d22358 to your computer and use it in GitHub Desktop.
Save LondonAppDev/fc64bbf28199b3d22358 to your computer and use it in GitHub Desktop.
MariaDB error
on
#define HAVE_WCSCOLL 1
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DND
EBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=
format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security b
uild/temp.linux-x86_64-2.7/_mysql.o -lmysqlclient_r -lpthread -lz -lm -lrt -lssl -lcrypto -ldl -o build/lib.lin
ux-x86_64-2.7/_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
----------------------------------------
Failed building wheel for mysql-python
Failed to build mysql-python
Installing collected packages: mysql-python
Running setup.py install for mysql-python
Complete output from command /home/mark/.virtualenvs/mw_me/bin/python -c "import setuptools, tokenize;__fil
e__='/tmp/pip-build-rL9Hpl/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-z4OEjs-record/install-record.txt --single
-version-externally-managed --compile --install-headers /home/mark/.virtualenvs/mw_me/include/site/python2.7/my
sql-python:
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb
running build_ext
building '_mysql' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FOR
TIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,'final',
1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7
/_mysql.o
In file included from _mysql.c:44:0:
/usr/include/mysql/my_config.h:438:0: warning: "HAVE_WCSCOLL" redefined
#define HAVE_WCSCOLL
^
In file included from /usr/include/python2.7/pyconfig.h:3:0,
from /usr/include/python2.7/Python.h:8,
from _mysql.c:29:
/usr/include/x86_64-linux-gnu/python2.7/pyconfig.h:911:0: note: this is the location of the previous defini
tion
#define HAVE_WCSCOLL 1
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -D
NDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werro
r=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security
build/temp.linux-x86_64-2.7/_mysql.o -lmysqlclient_r -lpthread -lz -lm -lrt -lssl -lcrypto -ldl -o build/lib.l
inux-x86_64-2.7/_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
----------------------------------------
Command "/home/mark/.virtualenvs/mw_me/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-rL9H
pl/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record /tmp/pip-z4OEjs-record/install-record.txt --single-version-externally-mana
ged --compile --install-headers /home/mark/.virtualenvs/mw_me/include/site/python2.7/mysql-python" failed with
error code 1 in /tmp/pip-build-rL9Hpl/mysql-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment