红联Linux门户
Linux帮助

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 出错啊

请高人指点
不胜感激!
文章评论

共有 5 条评论

  1. aduan 于 2010-06-10 12:28:17发表:

    应该是你的mysql配置有问题

  2. csfiqy 于 2010-05-31 19:25:15发表:

    Linux是老婆,Windows是妓女

  3. 残云断梦 于 2010-05-16 20:29:15发表:

    应该是依懒关系的问题吧。把该装的包都装上。什么lib库等。

  4. liuanqi 于 2010-02-10 09:09:11发表:

    大家帮帮忙啊

  5. liw0519 于 2010-02-09 16:33:27发表:

    顶起来