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

为php添加mysql模块时报错

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



解决方法:

[vagrant@rs-1 mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql-dir=/usr --with-zlib-dir


而非

[vagrant@rs-1 mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql=/usr --with-zlib-dir




posted @ 2017-05-17 18:17  claireyuancy  阅读(584)  评论(0编辑  收藏  举报