。 php-5.2.0.tar.gz 解压缩。 ./configure --with-mysql="/usr/local/mysql" ....................报错 checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information.
·详情请访问:http://www.515dns.com
而且,报错是关于mysql的。。
做过重编译的能不能说下,编译过程中需不需要停服务的?能不停最好,如果确定需要停,我就停下试试因为我这里不能随便停。。
php-5.2.0.tar.gz
解压缩。
./configure --with-mysql="/usr/local/mysql" ....................报错
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
'./configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'编译通过,再执行
'./configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-xmlrpc' '--with-expat-dir=/usr/lib' '--enable-soap' '--with-gd=/usr/local/gd2/' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-zlib-dir=/usr/local/lib/' '--with-png=/usr/local/lib/' '--with-freetype-dir=/usr/local/freetype/' '--with-libxml-dir=/usr/local/libxml2' '--enable-shmop' '--enable-mbstring'
就没问题而如果直接解压缩源码包执行
'./configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-xmlrpc' '--with-expat-dir=/usr/lib' '--enable-soap' '--with-gd=/usr/local/gd2/' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-zlib-dir=/usr/local/lib/' '--with-png=/usr/local/lib/' '--with-freetype-dir=/usr/local/freetype/' '--with-libxml-dir=/usr/local/libxml2' '--enable-shmop' '--enable-mbstring'
mysql那里就报错。
并且,如果按照前一种方式编译通过,去安装的话会不会出现问题?