欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

configure: error: mysql configure failed

程序员文章站 2022-06-11 14:58:46
...

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