By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.
宝塔面板PHP安装失败的解决方案
宝塔面板    2019-12-30 14:53:06    2606    0    0
emengweb   宝塔面板

尝试使用以下命令安装,看看具体报什么错:

bash /www/server/panel/install/php.sh install 7.1

再根据报错,手动安装缺少的库后,再尝试安装php即可正常安装。

 

错误提示:Unable to detect ICU prefix...

php(7.1) 需先安装 libicu-dev  (configure: error: Unable to detect ICU prefix)
                         和 libfreetype6-dev  (freetype-config not found)

执行

apt-get install libicu-dev -y

 

错误提示:recipe for target 'Zend/zend_execute.lo' failed

内存不足,添加swap内存或者是cpu占用过高被kill

 

安装PHP扩展失败的解决方法

wget -O ext.sh http://125.88.182.172:5880/ext/ext.sh && sh ext.sh

安装扩展错误提示:./configure: No such file or directory

apt-get install cmake libncurses5-dev libssl-dev libcurl4-openssl-dev pkg-config libicu-dev libfreetype6-dev -y

 

上一篇: VMware15 安装 mac OS 10.14 分辨率调整为1920*1080

下一篇: debian安装nodejs和pm2脚本

2606 人读过
文档导航