10. 27.
类似/usr/bin/ld: cannot find -xxxx的错误有很多, 首先我们可以最简单的判断一下:
这类情况一般是由于缺乏某某库文件, 又或者可能是由于已存在的库问题版本不对造成的
一般都是解决的办法就是安装缺乏的devel包就可以解决, 当然还有其他的未知因素, 我们看一个实例:
我在一台装centos5.2 x86_64的系统上配置php环境, 提示这个错误
“/usr/bin/ld: cannot find -lmysqlclient”
于是我安装了
# yum -y install mysql-devel
结果提示依旧, 我根据提示查看config.log
阅读全文 »
07. 9.
上次在编译php对mysqli的支持的时候出现了如下错误:
checking whether to enable embedded MySQLi support… no
checking for mysql_set_server_option in -lmysqlclient… no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
阅读全文 »