【待反馈】宝塔9.1为什么编译安装php,都失败呢?
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.1系统版本:debian12
问题描述:
为什么编译安装php,都失败呢?
相关截图(日志、错误):
https://ziyong-1251517688.file.myqcloud.com/0ZiYong/DiPin-ShanChu/2024/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240806103644.pnghttps://ziyong-1251517688.file.myqcloud.com/0ZiYong/DiPin-ShanChu/2024/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240806103658.png
5系列版本太低了,建议使用7系列版本
您好,您这边这应该是报错缺少libjpeg导致的
sudo apt-get install libjpeg62-dev
安装后在尝试看一下 运维技术阿闯 发表于 2024-8-6 10:58
您好,您这边这应该是报错缺少libjpeg导致的
sudo apt-get install libjpeg62-dev
安装后在尝试看一下 ...
root@VM-1-14-debian:~# sudo apt-get install libjpeg62-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libjpeg62-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libjpeg62-turbo-dev
E: Package 'libjpeg62-dev' has no installation candidate stlhs 发表于 2024-8-6 11:03
root@VM-1-14-debian:~# sudo apt-get install libjpeg62-dev
Reading package lists... Done
Building d ...
您好,应该是php5.2比较老版本了,无法获取完整的信息,建议使用其他php版本吧 运维技术阿闯 发表于 2024-8-6 11:19
您好,应该是php5.2比较老版本了,无法获取完整的信息,建议使用其他php版本吧 ...
问题是任何一个版本的php都编译安装失败啊,
这是php7.4的提示:
https://ziyong-1251517688.file.myqcloud.com/0ZiYong/DiPin-ShanChu/2024/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240806113929.png
https://ziyong-1251517688.file.myqcloud.com/0ZiYong/DiPin-ShanChu/2024/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240806114059.png stlhs 发表于 2024-8-6 11:41
问题是任何一个版本的php都编译安装失败啊,
这是php7.4的提示:
您好,这个错误是curl库的问题,尝试以下命令后在尝试一下
sudo apt-get install libcurl4-openssl-dev
运维技术阿闯 发表于 2024-8-6 12:00
您好,这个错误是curl库的问题,尝试以下命令后在尝试一下
sudo apt-get install libcurl4-openssl-dev
...
提示已经安装了。https://ziyong-1251517688.file.myqcloud.com/0ZiYong/DiPin-ShanChu/2024/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240806121909.png
stlhs 发表于 2024-8-6 12:19
提示已经安装了。
您好,在您的ssh终端执行
curl-config --version
查看curl版本,如果你的 libcurl 版本过旧,不支持 MIME 处理,你需要升级它
sudo apt-get update
sudo apt-get install --only-upgrade libcurl4-openssl-dev
页:
[1]