在Ubuntu上,我目前已经安装了Apache2.2.32+PHP5.4.45+ mySQL 5.1.55的源代码。现在,我想安装PHP 7.2.16。
我下载了.tar.gz文件,并尝试对其进行“配置”:
sudo ./configure --prefix=/usr/local/php_7.2.16 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/mysql --with-gettext --with-curl(它适用于PHP 5.4,显然是在另一个目录下)
但是,我现在得到以下错误消息:
mysql_config not found
configure: error: Please reinstall the mysql distribution我必须从头开始重新安装mySQL吗?有什么解决方法可以避免这种情况吗?谢谢。
发布于 2019-12-12 02:16:08
mysql_config是通过mysql-devel安装的。如果你运行mysql_config,它应该会返回给你编译客户端的所有选项。如果从软件包安装,它应该在/usr/bin/mysql_config这样的位置。在编译php源代码时,您可以将mysql_config的路径传递到
--with-mysqli=/usr/bin/mysql_confighttps://stackoverflow.com/questions/55424008
复制相似问题