configure: error: mysql configure failed. Please check config.log for more information
在编译安装php的时候,报如下错误:checking for mysql_close in -lmysqlclient… no
checking for mysql_error in -lmysqlclient… no
configure: error: mysql configure failed. Please check config.log for more information.
没有找到相关结果
已邀请:
1 个回复
空心菜 - 心向阳光,茁壮成长
2.看看是不是版本的问题
查看config.log提示的错…..看看版本问题.如果系统是X86的,lib应该是64位的.所以解决方法很容易.
这个libmysqlclient.a library 是在 /usr/lib64/mysql, 不是在 /usr/lib/mysql.
所以可以做下面的方法来解决
#export LDFLAGS=-L/usr/lib64/mysql
或者将Makefile里面的
-L/usr/lib/mysql
改为
-L/usr/lib64/mysql