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

【已解决】php7.2安装不了fileinfo

发表在 Linux面板2022-11-21 17:53 [复制链接] 2 6031

内存很足之前装过php7.3的时候没出现过插件安装失败的问题

现在想装个7.2和7.1,插件安装提示失败,
百度了半天,说是少gcc和c++,我也不知道具体咋整

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/fileinfo':configure: error: C preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more detailsmake: *** No targets specified and no makefile found. Stop.error
使用道具 举报 只看该作者 回复
发表于 2022-11-21 19:36:02 | 显示全部楼层
您好,您是否尝试手动安装gcc ,gcc-g++,安装命令的执行结果截图发一下
使用道具 举报 回复 支持 反对
发表于 2022-11-22 15:28:08 | 显示全部楼层
堡塔运维向樛木 发表于 2022-11-21 19:36
您好,您是否尝试手动安装gcc ,gcc-g++,安装命令的执行结果截图发一下

尝试安装了,没用,解决不了索性直接重置服务器系统了,现在没问题了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术分析

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

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