我试图建立PHP 5.2.17
从源头开始Ubuntu 12.4 64bit
使用此配置:
./configure --prefix=/opt/php5.2 --with-config-file-path=/opt/php5.2 --with-mysql
但我不断收到此错误:
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
知道如何解决这个问题吗?
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
感谢@hakre 的帮助。
这是我使用的命令并且它有效:
sudo ./configure --prefix=/opt/php5.2 --with-config-file-path=/opt/php5.2 --with-mysql --with-libdir=/lib/x86_64-linux-gnu
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)