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

【已回应】更新PHP出现这个错误 扩展也不能安装

发表在 Linux面板2020-2-25 09:01 [复制链接] 1 1022

本帖最后由 谢花郎 于 2020-2-25 09:06 编辑

upgrade[php-7.3]正在安装  | 关闭
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/www/server/php/73/update/src':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

Gracefully shutting down php-fpm . done
make: *** No rule to make target `install'. Stop.
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling...
使用道具 举报 只看该作者 回复
发表于 2020-2-25 09:06:23 | 显示全部楼层
ssh内执行下面命令,gcc编译器问题。

  1. yum reinstall glibc-headers gcc-c++ -y
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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