“Kann -lssl nicht finden; kann -lcrypto nicht finden ”bei der Installation von mysql-python mit der mariaDB library

Ich habe Mühe, den mysql-python-pip entweder systemweit oder in einem Venv unter Ubuntu 14.04 mit MariaDB 10 zu installieren. Habe es auch mit MariaDB 5.5 versucht und bekomme den gleichen Fehler. Ich habe dieses Problem nicht mit Vanilla MySQL-Server installiert.

Ich habe folgendes über apt-get installiert:

build-essential python-dev libmariadbclient-dev (das ist der MariaDB-Ersatz für libmysqlclient-dev) python-mysqldb

Ursprünglich dachte ich, dass dies ein Problem bei der Installation in einem Venv war, aber ich habe später bemerkt, dass mysql-python auch nicht systemweit installiert werden kann. Unten sind die cmds aufgeführt, die ich zum Installieren in einem venv verwendet habe.

virtualenv venv
. venv/bin/activate
pip install mysql-python==1.2.5

In file included from _mysql.c:44:0:
/usr/include/mysql/my_config.h:439:0: warning: "HAVE_WCSCOLL" redefined [enabled by default]
 #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 definition
 #define HAVE_WCSCOLL 1

^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 -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/_mysql.o -L/usr/lib/x86_64-linux-gnu -lmariadbclient_r -lpthread -lz -lm -lssl -lcrypto -ldl -o build/lib.linux-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
----------------------------------------
Cleaning up...
Command /root/env/bin/python -c "import setuptools, tokenize;__file__='/root/env/build/mysql-    python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-EyhO2v-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/env/include/site/python2.7 failed with error code 1 in /root/env/build/mysql-python
Storing debug log for failure in /root/.pip/pip.log

Antworten auf die Frage(4)

Ihre Antwort auf die Frage