日志

记一次解决CentOS PHP扩展fileinfo无法编译的解决

出错代码如下:

Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
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... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/www/server/php/56/src/ext/fileinfo':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make: *** No targets specified and no makefile found. Stop.
error

尝试各种办法解决未果,有说没有gcc的、有说内存不够的,都不对!
在查了大量资料的情况下,了解到症结所在,代码如下:

yum -y install glibc-kernheaders
雨痕
我还没有学会写个人说明!
查看“雨痕”的所有文章 →

发表评论

电子邮件地址不会被公开。 必填项已用*标注

相关推荐