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
红色字体不同,导致出错。
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。