技术知识分享

宝塔:php无法成功安装fileinfo 解决方案

腾讯云12月活动

宝塔面板报错信息:

Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
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... no
checking for gcc... no
configure: error: in `/www/server/php/70/src/ext/fileinfo':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.

故障原因:

没有安装gcc。


解决方案:

centos:

yum install gcc

debian&ubuntu:

 apt-get install gcc
未经允许不得转载:pc6a学习分享 » 宝塔:php无法成功安装fileinfo 解决方案
阿里云服务器双12活动
宝塔面板永久版优惠券

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址