php在linux下不能安装,linux 下 php 安装出错

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

请高人指点

不胜感激!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值