/usr/bin/ld: cannot find -lpython2.7

Ich versuche zu installieren von MySQLdb mit Python 2.7. Die Fehler, die ich bekommen hab sieht so aus:

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/opt/python2.7/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
gcc -pthread -shared build/temp.linux-x86_64-2.7/_mysql.o -L/usr/lib64/mysql -L. -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lmygcc -lpython2.7 -o build/lib.linux-x86_64-2.7/_mysql.so
/usr/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Klar, kann es nicht finden Python 2.7. Suchen in /usr/bin ich sehe:

python*
python2@
python2.4*
python2.7@

Was bedeutet die @ symbol bedeuten? Kann mir jemand raten, ein Mittel gegen den Fehler???

Sie müssen wahrscheinlich die python-dev - Paket (nicht in Verbindung mit dem @)
Glaube nicht, dass Sie wollen, dass die Python-binary. Sieht aus wie Sie benötigen Python .o-Dateien, da diese zu verbinden.
Sollte nicht diese Frage auf serverfault?

InformationsquelleAutor Mike | 2011-12-06

Schreibe einen Kommentar