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

【已解决】CentOS 7.9.2009 x86_64(Py3.7.9)安排php7.2扩展失败

发表在 Linux面板2021-12-31 20:16 [复制链接] 2 3004

宝塔安装php7.2的扩展,不管安装什么扩展都显示,求解

2021-12-31 20:12:32 (400 MB/s) - ‘exif.sh’ saved [3431/3431]正在选择下载节点...正在选择下载节点...Configuring forHP Api Version: 20170718Zend Module Api No: 20170718Zend Extension Api No: 320170718checking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... /lib/cppconfigure: error: in `/www/server/php/72/src/ext/exif':configure: error: C preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more detailsmake: *** No targets specified and no makefile found. Stop.ERROR!
使用道具 举报 只看该作者 回复
发表于 2021-12-31 20:17:06 | 显示全部楼层
您好,您是否有修改过内核呢?可执行下面命令重新安装gcc组件重新安装

  1. yum reinstall glibc-headers gcc-c++ -y
复制代码
使用道具 举报 回复 支持 反对
发表于 2021-12-31 20:48:50 | 显示全部楼层
谢花郎 发表于 2021-12-31 20:17
您好,您是否有修改过内核呢?可执行下面命令重新安装gcc组件重新安装

好了,谢谢大佬~
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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