PHP: 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.

解决方法:

 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql-dir=/usr --with-

mysqli=/usr/bin/mysql_config --with-iconv-dir --with-freetype-dir=/usr/include/freetype2/freetype --with-jpeg-

dir=/data/apps/libs --with-png-dir=/data/apps/libs --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath 

--enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --

enable-fpm --enable-mbstring --with-mcrypt=/data/apps/libs --with-gd --enable-gd-native-ttf --with-openssl --

with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-opcache --with-pdo-

mysql --enable-maintainer-zts
Generating files
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating sapi/fpm/init.d.php-fpm
config.status: creating sapi/fpm/php-fpm.service
config.status: creating sapi/fpm/php-fpm.8
config.status: creating sapi/fpm/status.html
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
configure: WARNING: unrecognized options: --with-mysql-dir
[[email protected] php-5.6.7]#
http://blog.csdn.net/angel22xu/article/details/25713867
时间: 2024-10-24 09:40:44

PHP: configure: error: mysql configure failed. Please check config.log for more information.的相关文章

升级openssh编译时报错“configure: error: *** working libcrypto not found, check config.log”的解决办法

问题描述 在linux上,欲将OpenSSH_6.4p1编译升级到OpenSSH_8.0p1时,执行了./configure ....编译命令后报错,报错信息如下: configure: error: *** working libcrypto not found, check config.log *** 或: configure: error: *** OpenSSL headers missing - please install first or check config.log ***

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

为php添加mysql模块时报错 解决方法: [[email protected] mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql-dir=/usr --with-zlib-dir 而非 [[email protected] mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql=/usr --

PhP 常见安装错误configure error xml2-config not found. please check your libxml2 installation

编译PHP的时候报错: 安装 PHP 5.4.3 报 configure error xml2-config not found. please check your libxml2 installation 错误 检查是否安装了libxm包 [[email protected] software]# rpm -qa |grep  libxml2  // 查看当前已经安装点包 libxml2-2.6.26-2.1.12 libxml2-python-2.6.26-2.1.12 重新安装libxm

configure: error: xml2-config not found. Please check your libxml2 installation

configure: error: xml2-config not found. Please check your libxml2 installation 参考文章:http://blog.csdn.net/anljf/article/details/6981247 安装php时的报错 checking libxml2 install dir... nochecking for xml2-config path... configure: error: xml2-config not fou

安装php时,configure: error: xml2-config not found. Please check your libxml2 installation

参考文章:http://blog.csdn.net/anljf/article/details/6981247 安装php时的报错configure: error: xml2-config not found. Please check your libxml2 installation. ? ? 检查是否安装了libxm包 [[email protected] php-5.3.8]# rpm -qa |grep? libxml2libxml2-2.6.26-2.1.12libxml2-pyth

linux configure: error: xml2-config not found. Please check your libxml2 installation

问题出现: 下载并安装源码包的时候 问题包链接: php5.3.22源码包 问题引申: linux系统安装文件分为:源码包(tar.gz)和非源码包(rpm,deb,非源码的tar.gz),安装源码包需要进入解压目录.笔者解压目录为:/home/ccc/Downloads/php5.3.22 1. 使用cd命令进入php5.3.22后,查看文件夹内容,大部分都会存在INSTALL文件和README文件,在README文件中会有软件安装的详细步骤.在此很多和我一样的新手会犯同样的错误:不进入该解压

安装 PHP 5.4.3 报 configure error xml2-config not found. please check your libxml2 installation 错误

检查是否安装了libxm包 [[email protected] software]# rpm -qa |grep  libxml2libxml2-2.6.26-2.1.12libxml2-python-2.6.26-2.1.12 重新安装libxml2和libxml2-devel包, yum安装的时候发现新版本会提示更新,需要更新的可以更新,不要跳过就行了. [[email protected] /]# yum install libxml2 [[email protected] /]# yu

Exception occurred while processing this request, check the log for more information!安装ActiveMq-5.14.1 配置安全验证报错解决

安装ActiveMq-5.14.1  并配置了安全验证成功后,客户端也连接成功了.服务端也能通过http://IP:8161登录到控制台. 但是在点击队列,想要查看队列视图时报错,如下图: 查看日志发现有如下报错: 那么我就开始找配置这个用户的地方,发下时conf目录下的credentials.properties文件中. 内容如下: 这里有这个账户的配置,那么是哪里引用这个配置文件呢? 在主配置文件 activemq.xml 查看,发现如下: 大概了解了下,这段配置的作用,是在控制台中查看,删

fedota 20编译php checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. 错误

php-5.5.15 + mysql-5.5.27,编译php的时候报错,checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. Check config.log for more information. 解决方法重新编译mysql,并把-DENABLE_DTRACE=0这项加进mysql的编译cmake