linux 下 php 安装出错
发布时间:2010-02-08 16:03:42来源:红联作者:liuanqi
我用的虚拟机下的 fedora11 我用yum 卸载系统 自带的mysql 之后 自己安装了 一个 mysql-5.0.45.tar.gz我用的yum remove mysql 卸载的系统自带的mysql
[root@localhost local]# rpm -qa |grep mysql
qt-mysql-4.5.0-14.fc11.i586
mysql-libs-5.1.32-1.fc11.i586
在编译php 的时候
[root@localhost php-5.2.8]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql-dir=/usr/local/mysql -with-mysqli=/usr/local/mysql/bin/mysql_config --with-xml=/usr/local/libxml2 --with-png=/usr/local/lib --with-jpeg-dir=/usr/local/jpeg6 --with-zlib=/usr/local/zlib --with-freetype=/usr/local/freetype --with-gd=/usr/local/gd --enable-track-vars --enable-soap --enable-mbstring=all
报这个错:checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
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.
这样 的时候
[root@localhost php-5.2.8]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql -with-mysqli=/usr/local/mysql/bin/mysql_config --with-xml=/usr/local/libxml2 --with-png=/usr/local/lib --with-jpeg-dir=/usr/local/jpeg6 --with-zlib=/usr/local/zlib --with-freetype=/usr/local/freetype --with-gd=/usr/local/gd --enable-track-vars --enable-soap --enable-mbstring=all
报这个错
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.
请问是不是 我用yum 卸载了 系统的一些文件 才导致编译 php 的时候mysql 出错啊
请高人指点
不胜感激!