这里是普通文章模块栏目内容页
error: mysql configure failed.

php编译mysql
configure: error: mysql configure failed. Please check config.log for more information.

root@test_03:~/php-5.2.10# ./configure --help |grep mysql
  --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base directory

郁闷的是..被误导了.其实是要--with-mysql-dir=XXX

原配置信息如下,出错:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs  --with-xml --with-mysql=/usr/ --with-config-file-path=/usr/local/lib -enable-track-vars --enable-sockets --with-zlib

修改配置如下,成功编译安装:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs  --with-xml --with-mysql-dir=/usr/ --with-config-file-path=/usr/local/lib -enable-track-vars --enable-sockets --with-zlib

红色字体不同,导致出错。