我试图使用此配置PHP 5.2.17从源代码构建Ubuntu 12.4 64bit:
./configure --prefix=/opt/php5.2 --with-config-file-path=/opt/php5.2 --with-mysql
Run Code Online (Sandbox Code Playgroud)
但我一直收到这个错误:
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
Run Code Online (Sandbox Code Playgroud)
任何想法如何解决这个问题?
EDIT1:我最小化了configure命令,所以它只关注mysql.我也在运行64位版本的ubuntu.
EDIT2:尝试运行ldconfig -v |grep mysql,这是输出
# ldconfig -v |grep mysql
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/libnss_db.so: No such file or directory
libmysqlclient.so.18 -> libmysqlclient_r.so.18.0.0
libmysqlpp.so.3 -> libmysqlpp.so.3.1.0
Run Code Online (Sandbox Code Playgroud) 最近我在我的开发机器上安装了Ubuntu 12.10.我也安装了apache 2.2和Php 5.3.8以及Php 5.2.17和MySQL.一切正常,我可以通过127.0.0.1和Localhost关键字和主机名浏览我的网站和项目但我无法通过本地IP地址(192.168.1.5)访问我的网站或Apache Web服务器.我用Ubuntu 11.10在笔记本电脑上运行这个模型,可以通过192.168.1.x访问.
你对这个问题有任何了解吗?请让我知道你的XP在这种情况下?
万分感谢你的病人... Farzam.