/usr/bin/ld: cannot find -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
2008年11月25日?| 標簽:?mysqlclient_r,?python,?數據庫今天在家里電腦準備安裝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
總結
以上是生活随笔為你收集整理的/usr/bin/ld: cannot find -lmysqlclient_r的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎么解除文件的权限 去除文件访问限制的方
- 下一篇: linux cmake编译源码,linu