php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1相关的知识,希望对你有一定的参考价值。

php编译安装执行make时报错,报错如下:

/bin/sh /root/php-5.6.31/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/php-5.6.31/ext/fileinfo/libmagic -Iext/fileinfo/ -I/root/php-5.6.31/ext/fileinfo/ -DPHP_ATOM_INC -I/root/php-5.6.31/include -I/root/php-5.6.31/main -I/root/php-5.6.31 -I/root/php-5.6.31/ext/date/lib -I/root/php-5.6.31/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/php-5.6.31/ext/mbstring/oniguruma -I/root/php-5.6.31/ext/mbstring/libmbfl -I/root/php-5.6.31/ext/mbstring/libmbfl/mbfl -I/root/php-5.6.31/ext/sqlite3/libsqlite -I/root/php-5.6.31/TSRM -I/root/php-5.6.31/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/php-5.6.31/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

查询得知是应为vps内存太小没到1G引起的,在./configure时加--disable-fileinfo成功解决


本文出自 “弦断指间” 博客,请务必保留此出处http://vaedit.blog.51cto.com/12675976/1983603

以上是关于php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1的主要内容,如果未能解决你的问题,请参考以下文章

(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错

在Linux下安装Python执行make命令时报错“Failed to build these modules: _ctypes“

Linux升级ntp,make时报错怎么办?急,在线等!!!!

php安装mamcache扩展时报错

linux下安装qt make时报错有大牛知道是啥原因造成的吗

linux下能够指定位置安装libevent,但是MAKE时报错,求解?