/usr/bin/ld: cannot find -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
2008年11月25日?| 標簽:?mysqlclient_r,?python,?數(shù)據(jù)庫今天在家里電腦準備安裝django環(huán)境,當然肯定用mysql數(shù)據(jù)庫了。PYTHON要操作MYSQL,必須得安裝擴展名–mysql-python,(mysql-python-1.2.2).在安裝期間提示標題所寫(/usr/bin/ld: cannot find -lmysqlclient_r),
執(zhí)行以下命令:
echo “/usr/local/mysql/lib/mysql” >> /etc/ld.so.conf(我的環(huán)境是centos 5)
ldconfig,執(zhí)行以后還是提示以上錯誤。?
———————–
后來看來一下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設(shè)為false,一切OK!
python setup.py install
總結(jié)
以上是生活随笔為你收集整理的/usr/bin/ld: cannot find -lmysqlclient_r的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎么解除文件的权限 去除文件访问限制的方
- 下一篇: Qmail的介绍和配置