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