麻烦军哥帮看看,php无论啥版本都没法升级,郁闷了
7.2.16升级报错,然后又降低到了7.2.7 又降到7.2.6还是全部失败,麻烦军哥看看卡哪里了,谢谢 /root/lnmp/src/php-7.2.6/Zend/zend_ast.h:147: warning: comma at end of enumerator listIn file included from /root/lnmp/src/php-7.2.6/Zend/zend.h:328,
from /root/lnmp/src/php-7.2.6/main/php.h:35,
from /root/lnmp/src/php-7.2.6/ext/intl/intl_convertcpp.cpp:24:
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h: In function ‘void fast_long_increment_function(zval*)’:
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h:446: error: ‘__builtin_saddl_overflow’ was not declared in this scope
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h: In function ‘void fast_long_decrement_function(zval*)’:
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h:500: error: ‘__builtin_ssubl_overflow’ was not declared in this scope
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h: In function ‘void fast_long_add_function(zval*, zval*, zval*)’:
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h:554: error: ‘__builtin_saddl_overflow’ was not declared in this scope
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h: In function ‘void fast_long_sub_function(zval*, zval*, zval*)’:
/root/lnmp/src/php-7.2.6/Zend/zend_operators.h:657: error: ‘__builtin_ssubl_overflow’ was not declared in this scope
make: *** Error 1
你什么系统,什么版本?
有可能是你系统版本低造成低,低版本低系统gcc一般不符合要求,得gcc5以上版本 回军哥,就是centos6.9 64位的,gcc升级到8.3.0而已,升级gcc只是为了编译swoole扩展
这swoole能编译了,php又不能行了,真郁闷了 gcc -v
g++ -v
版本都显示8.3.0呢,
> cd /usr/local/src
> wget http://ftp.gnu.org/gnu/gcc/gcc-7.1.0/gcc-7.1.0.tar.bz2
> tar -jxvf gcc-7.1.0.tar.bz2
> cd gcc-7.1.0
> ./contrib/download_prerequisites
> mkdir gcc-temp
> ./configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
#编译超级慢
> make -j4
> make install
替换原来的gcc版本
> update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/x86_64-pc-linux-gnu-gcc 40
> mv /usr/bin/gcc /usr/bin/gcc.bak
> ln -s /usr/local/bin/x86_64-pc-linux-gnu-gcc /usr/bin/gcc 这个就不大清楚了,一般centos上升级gcc 按 https://www.vpser.net/manage/centos-6-upgrade-gcc.html 这个操作 谢谢军哥,发现还是今年写的2019年01月7哈,
一会就试试能成功不 :Q :Q :Q不行呀军哥
centos6.9_64位 更新了阿里云的系统源,
然后按您的方法升级了gcc 7.3
然后再安装lnmp ,就报错了 奇了怪了.再安装一次,到现在居然就,,,过了,安装完成了,,我一脸懵bi:o :o :L
页:
[1]