当前位置:论坛首页 > Linux面板 > 求助

【已解答】Ubuntu无法安装PHP

发表在 Linux面板3 天前 [复制链接] 1 47

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:最新安装的面板,插件是PHP7.1-7.3都无法安装
系统版本:Ubuntu 20.04.2 LTS
问题描述:无法安装PHP

相关截图(日志、错误):php.sh: line 514: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop./www/server/php/73/bin/php: error while loading shared libraries: libcares.so.2: cannot open shared object file: No such file or directory/www/server/php/73/bin/php: error while loading shared libraries: libcares.so.2: cannot open shared object file: No such file or directory--2025-05-23 16:51:35-- https://download.bt.cn/init/php/php-fpm-73Resolving download.bt.cn (download.bt.cn)... 157.255.129.229Connecting to download.bt.cn (download.bt.cn)|157.255.129.229|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 2405 (2.3K) [application/octet-stream]Saving to: ‘/etc/init.d/php-fpm-73’0K .. 100% 307M=0s2025-05-23 16:51:35 (307 MB/s) - ‘/etc/init.d/php-fpm-73’ saved [2405/2405]Starting php-fpm /www/server/php/73/sbin/php-fpm: error while loading shared libraries: libcares.so.2: cannot open shared object file: No such file or directory
使用道具 举报 只看该作者 回复
发表于 前天 09:08 | 显示全部楼层
缺少库libcares
  1. apt-get update
  2. apt-get -y install libc-ares-dev
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表