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


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

宝塔面板报错信息:

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

声明:渐行渐远|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 宝塔:php无法成功安装fileinfo 解决方案