php-7.3.19编译问题汇总

原创
2020/06/30 10:33
阅读数 508

环境介绍

环境名称 版本
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
      
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部