/usr/bin/ld: cannot find -lmysqlclient_r

/usr/bin/ld: cannot find -lmysqlclient_r

2008年11月25日  | 标签: mysqlclient_rpython数据库

今天在家里电脑准备安装django环境,当然肯定用mysql数据库了。PYTHON要操作MYSQL,必须得安装扩展名–mysql-python,(mysql-python-1.2.2).在安装期间提示标题所写(/usr/bin/ld: cannot find -lmysqlclient_r),

执行以下命令:

echo “/usr/local/mysql/lib/mysql” >> /etc/ld.so.conf(我的环境是centos 5)

ldconfig,执行以后还是提示以上错误。 

———————–

后来看来一下README,原文在下面

——————-

threadsafe
        thread-safe client library (libmysqlclient_r) if True (default);
        otherwise use non-thread-safe (libmysqlclient). You should
        always use the thread-safe library if you have the option;
        otherwise you *may* have problems.

———————————

得知得修改site.cfg,将thread-safe设为false,一切OK!

python setup.py install

posted on 2012-05-18 00:08  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/05/18/2507109.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值