Python论坛  - 讨论区

标题:[python-chinese] 请教MySQLdb在linux上安装不了

2007年07月31日 星期二 11:59

Brightman mr.brightman在gmail.com
星期二 七月 31 11:59:25 HKT 2007

´ó¼ÒºÃ£¬ÎÊÌâÈçÏ£º

[MySQL-python-1.2.2]$ python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -shared build/temp.linux-x86_64-2.5/_mysql.o
/home/forum/mysql5/lib/mysql/libmysqlclient_r.a
-L/home/forum/mysql5/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt
-lnsl -lm -lpthread -o build/lib.linux-x86_64-2.5/_mysql.so
/usr/bin/ld:
/home/forum/mysql5/lib/mysql/libmysqlclient_r.a(libmysql.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/home/forum/mysql5/lib/mysql/libmysqlclient_r.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

ÊÇÐèÒªÐÞ¸Ä build_ext £¿ÔÚÄǶùÐ޸ģ¿Ð»Ð»
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070731/2c14be39/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号