php编译安装,mysql报错

回复 收藏
本帖最后由 hazhuer 于 2016-4-18 12:55 编辑

configure: error: mysql configure failed. Please check config.log for more infor                                                                                        mation.
原配置信息如下,出错:

./configure --prefix=/usr/local/php --with-onfig-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql


修改后的配置信息,编译成功:

./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=mysqlnd  --with-mysqli=mysqlnd  --with-pdo-mysql=mysqlnd

2016-04-14 18:50 举报
已邀请:
0

hazhuer

赞同来自:

make ***[libphp5.la] Error 1解决方法
make ***[libphp5.la] Error 1
处理方法:
安装两个rpm包#yum -y install libtool.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
然后make clean;make
0

hazhuer

赞同来自:

安装discuz报错:
mysqli_connect()不支持advice_mysqli_connect
解决办法
重新编译php加上--with-mysqli=mysqlnd
然后重启httpd
0

hazhuer

赞同来自:

[Fri Apr 15 23:37:50 2016] [error] [client 118.122.85.173] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /data/www/1.php on line 2

修改php.ini中date.timezone=Asia/Chongqing
重启服务
0

hazhuer

赞同来自:

登录数据库报错
/usr/local/mysql/bin/mysql -uroot
/usr/local/mysql/bin/mysql: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

解决办法:
yum install libncurses.so.5
在重启数据库
0

hazhuer

赞同来自:

本帖最后由 hazhuer 于 2016-4-16 21:52 编辑

安装nginx是报错
./configure: error: the HTTP rewrite module requires the PCRE library.
解决办法
yum -y install pcre-devel openssl openssl-devel
用nginx搭建discuz时,不自动跳转到安装页面,而是在nginx的主页,检查配置文件原来是root后面路径没有修改,修改为nginx的安装目录。

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: