码迷,mamicode.com
首页 > 数据库 > 详细

编译 PHP时提示mysql 错误

时间:2015-12-15 06:32:01      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:php

编译PHP: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql-dir=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --enable-zend-multibyte --disable-ipv6 --with-pear --with-curl=/usr/bin/ --with-openssl


提示错误信息:

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


将--with-mysql=/usr/local/mysql  修改为--with-mysql-dir=/usr/local/mysql 解决。

原因不明,可能是版本的问题。因为教程里是正常的。



感谢http://www.myexception.cn/ai/1653997.html

编译 PHP时提示mysql 错误

标签:php

原文地址:http://752030200.blog.51cto.com/8936921/1723024

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!