LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 711|回复: 3

安装PHP时出现错误,请高手帮忙,感谢!!

[复制链接]
发表于 2006-8-8 11:25:32 | 显示全部楼层 |阅读模式
安装 MySQL5.0.24 + Apache2 + php5.1.4,先安装的 MySQL,Binary方式,然后是 Apache2,动态链接库方式,最后php5.1.4,使用下面命令:

#./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql=/usr/local/mysql   --with-config-file-path=/usr/local/php5

在Extension config一部分,检测 MySQL 支持时出现如下错误:

...
checking for MySQL support... yes
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.

无法继续。还请高手帮忙讲下原因及解决办法,再次感谢!!!
发表于 2006-8-8 12:50:50 | 显示全部楼层

可以这样……

用--with-mysql-dir=/usr/local/mysql 替换 --with-mysql=/usr/local/mysql即可……

http://bugs.php.net/bug.php?id=35848 看看这个……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-9 14:39:39 | 显示全部楼层
按照楼上所说的方法根本没法连上MySQL了???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-9 16:10:21 | 显示全部楼层
经摸索,问题已解决。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表