宝塔用户_ylnhqr 发表于 2026-8-17 15:40:38

【已解答】Ubuntu 26.04安装P7.4失败了

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Ubuntu 26.04 LTS
系统版本:Linux面板13.0.0
问题描述:Ubuntu 26.04安装P7.4失败了
相关截图(日志、错误):checking for working autoheader... foundchecking for working makeinfo... missingchecking whether to enable maintainer-specific portions of Makefiles... nochecking for gcc... gccchecking whether the C compiler (gcc) works... noconfigure: error: installation or configuration problem: C compiler cannot create executables.make: *** No targets specified and no makefile found.Stop.当前系统暂不支持php-8.0及以下的版本 建议安装php-8.1及以上的版本|-Successify --- 命令已执行! ---

宝塔用户_ylnhqr 发表于 2026-8-17 15:42:12

checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** No targets specified and no makefile found.Stop.
当前系统暂不支持php-8.0及以下的版本
建议安装php-8.1及以上的版本
|-Successify --- 命令已执行! ---

桥哥 发表于 2026-8-18 09:42:10

您好,您可以通过客服咨询宝塔面板相关问题:https://docs.bt.cn/wechat-service
操作方式:复制链接在微信打开,即可在线咨询客服。

堡塔运维塔塔 发表于 2026-8-24 11:02:24

您好,根据报错,根本原因是 PHP 7.4 与 Ubuntu 26.04 系统不兼容,Ubuntu 26.04其默认的 glibc、libxml2 等核心库版本很高,同时php7.4已经在2022年停止了官方维护,因此您需要安装8.1以上的版本。

如果您对此有任何顾虑或者问题,您可以通过客服咨询宝塔面板相关问题:https://docs.bt.cn/wechat-service
操作方式:复制链接在微信打开,即可在线咨询客服。
页: [1]
查看完整版本: 【已解答】Ubuntu 26.04安装P7.4失败了