当前位置:Gxlcms > mysql > configure:error:mysqlconfigurefailed

configure:error:mysqlconfigurefailed

时间:2021-07-01 10:21:17 帮助过:23人阅读

AS5 X64下php-5.3.3编译时出现configure: error: mysql configure failed. 是由于64位引起的 处理办法: ln -s /usr/lib64/mysql/ /usr/local/lib/mysql ln -s /usr/include/mysql/ /usr/local/include/mysql ./configure --prefix=/usr/local/php --with-ap

AS5 X64下 php-5.3.3编译时出现configure: error: mysql configure failed.

是由于64位引起的

处理办法:

ln -s /usr/lib64/mysql/ /usr/local/lib/mysql
ln -s /usr/include/mysql/ /usr/local/include/mysql

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr/local/zlib --with-gd=/usr/local/gd -with-png-dir=/usr/local --with-jpeg-dir=/usr --with-freetype-dir=/usr/local --enable-mbstring --with-mysql=/usr/local --with-xml

请确认是否安装

mysql-5.0.22-2.2.el5_1.1.x86_64.rpm 也可以用mysql-5.0.22-2.1.x86_64.rpm

mysql-devel-5.0.22-2.2.el5_1.1.x86_64.rpm 也可以用 mysql-devel-5.0.22-2.1.x86_64.rpm

人气教程排行