首页  >  文章  >  数据库  >  configure: error: mysql configure failed

configure: error: mysql configure failed

WBOY
WBOY原创
2016-06-07 15:52:211493浏览

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

 

 

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn