文章目录

我们给客户搭建服务器目前都习惯使用宝塔面板。这两天客户要求将php升级到7.4,于是我们直接点击安装以为可以轻松解决。

然而失策了……

居然安装失败了,消息列表写着安装[php-7.4]【已完成】耗时29秒,然而软件商店里php7.4还显示着“安装”按钮。

赶紧查看下执行日志吧(摘录关键的):

1
2
3
4
5
6
7
8
9
10
No package 'libjpeg' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables JPEG_CFLAGS
and JPEG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

原因很明确了,应该安装libjpeg包就可以了。

于是连上ssh,执行安装命令:

1
yum install libjpeg libjpeg-devel

搞定。安装php7.4。成功。

♦ 本文固定连接:https://www.gsgundam.com/archive/2020-09-22-bt-panel-php-install-failed/

♦ 转载请注明:GSGundam 2020年09月22日发布于 GSGUNDAM砍柴工

♦ 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接。

♦ 原创不易,如果页面上有适合你的广告,不妨点击一下看看,支持作者。(广告来源:Google Adsense)

♦ 本文总阅读量