环境介绍
环境名称 | 版本 |
---|---|
centos | 7.6 |
php | 7.3.19 |
问题处理
编译参数如下:
./configure --prefix={{install_dir}} --with-config-file-path={{install_dir}}/etc --with-config-file-scan-dir={{install_dir}}/conf.d --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-fpm-systemd --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir ...
-
问题1:
-
错误:因为开启了
--with-fpm-systemd
,系统中缺少 systemd-devel 库"configure: error: Your system does not support systemd."
-
解决:
yum install -y systemd-devel
-
-
问题2:
-
错误:缺少ICU库,点我查看ICU是什么
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
-
解决:
yum install -y icu libicu libicu-devel
-