lnmp1.7安装php7.2.30失败
本帖最后由 hisune 于 2020-5-6 12:34 编辑cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** Error 1
/bin/sh /root/lnmp1.7/src/php-7.2.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/root/lnmp1.7/src/php-7.2.30/Zend/ -DPHP_ATOM_INC -I/root/lnmp1.7/src/php-7.2.30/include -I/root/lnmp1.7/src/php-7.2.30/main -I/root/lnmp1.7/src/php-7.2.30 -I/root/lnmp1.7/src/php-7.2.30/ext/date/lib -I/usr/include/libxml2 -I/usr/local/freetype/include/freetype2 -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/oniguruma -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/libmbfl -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/libmbfl/mbfl -I/root/lnmp1.7/src/php-7.2.30/ext/sqlite3/libsqlite -I/root/lnmp1.7/src/php-7.2.30/ext/zip/lib -I/root/lnmp1.7/src/php-7.2.30/TSRM -I/root/lnmp1.7/src/php-7.2.30/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/lnmp1.7/src/php-7.2.30/Zend/zend_execute.c -o Zend/zend_execute.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** Error 1
/bin/sh /root/lnmp1.7/src/php-7.2.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/root/lnmp1.7/src/php-7.2.30/Zend/ -DPHP_ATOM_INC -I/root/lnmp1.7/src/php-7.2.30/include -I/root/lnmp1.7/src/php-7.2.30/main -I/root/lnmp1.7/src/php-7.2.30 -I/root/lnmp1.7/src/php-7.2.30/ext/date/lib -I/usr/include/libxml2 -I/usr/local/freetype/include/freetype2 -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/oniguruma -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/libmbfl -I/root/lnmp1.7/src/php-7.2.30/ext/mbstring/libmbfl/mbfl -I/root/lnmp1.7/src/php-7.2.30/ext/sqlite3/libsqlite -I/root/lnmp1.7/src/php-7.2.30/ext/zip/lib -I/root/lnmp1.7/src/php-7.2.30/TSRM -I/root/lnmp1.7/src/php-7.2.30/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/lnmp1.7/src/php-7.2.30/Zend/zend_execute.c -o Zend/zend_execute.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** Error 1
Copy new php configure file...
Modify php.ini......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found
include/php.sh: line 92: php: command not found
curl: (23) Failed writing body (0 != 16110)
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
include/upgrade_php.sh: line 691: lnmp: command not found
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.
谷歌后基本都是说内存不够导致的,我vps是阿里云centos7,512M的内存,然后加了2G的swap,还是报这个错误:
free -m:
total used free sharedbuff/cache available
Mem: 480 69 336 0 74 397
Swap: 2047 0 2047
内存不足
swap它只是swap,但不是完全当内存用
页:
[1]