2007年03月26日 星期一 13:23
running build running build_py copying MySQLdb/release.py -> build/lib.linux-i686-2.4/MySQLdb running build_ext building '_mysql' extension gcc -pthread -shared build/temp.linux-i686-2.4/_mysql.o -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -o build/lib.linux-i686-2.4/_mysql.so /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1) Redhat AS4
2007年03月26日 星期一 14:25
/usr/bin/ld: cannot find -lmysqlclient_r 未找到mysqlclient_r库 先配置好该库的位置 2007/3/26, duketang <duketxl at gmail.com>: > > running build > running build_py > copying MySQLdb/release.py -> build/lib.linux-i686-2.4/MySQLdb > running build_ext > building '_mysql' extension > gcc -pthread -shared build/temp.linux-i686-2.4/_mysql.o > -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm > -lpthread -o build/lib.linux-i686-2.4/_mysql.so > /usr/bin/ld: cannot find -lmysqlclient_r > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1) > > Redhat AS4 > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- devdoer devdoer at gmail.com http://devdoer.blog.sohu.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070326/9fe2a149/attachment-0001.htm
2007年03月26日 星期一 14:27
/usr/bin/ld: cannot find -lmysqlclient_r 请确认 libmysqlclient_r.so 在库搜索路径中, 可以简单的 #ldconfig -p |grep mysqlclient_r 看看有没有. 如果没有, 请确认 mysql 编译的时候带了线程支持(否则不会编译出mysqlclient_r 的库. duketang 写道: > running build > running build_py > copying MySQLdb/release.py -> build/lib.linux-i686-2.4/MySQLdb > running build_ext > building '_mysql' extension > gcc -pthread -shared build/temp.linux-i686-2.4/_mysql.o > -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm > -lpthread -o build/lib.linux-i686-2.4/_mysql.so > /usr/bin/ld: cannot find -lmysqlclient_r > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1) > > Redhat AS4 > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2007年03月26日 星期一 15:19
安装了一个 share-compat 就好了 看来缺少什么东西 2007/3/26, duketang <duketxl在gmail.com>: > running build > running build_py > copying MySQLdb/release.py -> build/lib.linux-i686-2.4/MySQLdb > running build_ext > building '_mysql' extension > gcc -pthread -shared build/temp.linux-i686-2.4/_mysql.o > -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm > -lpthread -o build/lib.linux-i686-2.4/_mysql.so > /usr/bin/ld: cannot find -lmysqlclient_r > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1) > > Redhat AS4 >
Zeuux © 2025
京ICP备05028076号