linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
2014-11-13 14:57
681 查看
linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
2013-03-04 15:34wdjhz | 分类:服务器软件 | 浏览5318次configure: error: Cannot find MySQL header files under /usr/include/mysql. Note that the MySQL client library is not bundled anymore! 提示我找不到MySQL header files 上网查了一下,用find / -name mysql.h查到确实存在/usr/include/mysql/mysql.h的 我的mysql是用官方rpm包安装的 server client devel share-compat 都装了... 初进入linux领域,求大神指点,感激不尽
分享到:
2013-03-04 17:28提问者采纳
哦,估计多半是64位的问题,在64位上装软件遇到的问题,很多时候都是因为库路径的问题,按dongboemil应该是可以解决的。要么PHP指定预配置参数MYSQL的库路径,要么就是把MYSQL的库复制或软链接到PHP默认寻找的目录。
追问
我刚接触linux的,不太懂 可以说得具体一点吗?谢谢
回答
--with-mysql=/usr/include/mysql,这个参数应该不对, 把它改为 --with-mysql 或 --with-mysql=/usr 试试 因为你MYSQL是RPM装的,按系统路径来的 如果还是不行,再说 注意,每次重新预配置,先这样: make clean 再重新预配置,进行编译
提问者评价
非常感谢,按照你说的,测试了一下,真的可以了,现在终于能连上mysql了,还有,也谢谢楼下几位了~
相关文章推荐
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- 编译安装php Cannot find MySQL header files under /usr/include/mysql.
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- 安装centos 5下编译安装PHP时报错configure: error: Cannot find MySQL header files under
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- php 安装 configure: error: Cannot find libmysqlclient under /usr. 解决
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- [服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- 安装PDO_MYSQL遇到的问题:error: Cannot find MySQL header files under
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- 解决Cannot find MySQL header files under /usr/include/mysql的错误
- 安裝 PHP时出现error: Cannot find MySQL header files under yes
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- 【linux】安裝 PHP时出现error: Cannot find MySQL header files
- ERROR: cannot find MySQL include files 安装 coreseek-3.2.14 遇到的问题及解决
- configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
- php5 ./configure error: Cannot find MySQL header files