VPS侦探论坛

 找回密码
 注册
查看: 4046|回复: 6

安装多php版本出错

[复制链接]
发表于 2018-8-20 22:03:44 | 显示全部楼层 |阅读模式

系统: amazon linux

lnmp1.5的安装包 默认安装的php5.6的 完成后想安装php7.2版本,出现错误。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-8-21 10:26:48 | 显示全部楼层


/root/lnmp1.5/src/php-7.2.6/Zend/zend_operators.h: In function ‘void fast_long_sub_function(zval*, zval*, zval*)’:
/root/lnmp1.5/src/php-7.2.6/Zend/zend_operators.h:657:80: error: ‘__builtin_ssubl_overflow’ was not declared in this scope
  if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) {
                                                                                ^
/root/lnmp1.5/src/php-7.2.6/Zend/zend_portability.h:312:52: note: in definition of macro ‘UNEXPECTED’
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
                                                    ^
make: *** [ext/intl/intl_convertcpp.lo] Error 1

gcc -dumpversion 看一下,这个好像是和gcc版本有关系
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-8-21 15:35:13 | 显示全部楼层

[root@homego]# gcc -dumpversion
7
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-8-21 15:38:19 | 显示全部楼层



[root@homego]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-amazon-linux/7/lto-wrapper
Target: x86_64-amazon-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-default-libstdcxx-abi=gcc4-compatible --without-isl --disable-libmpx --disable-libsanitizer --enable-gnu-indirect-function --disable-libcilkrts --disable-libatomic --disable-libquadmath --disable-libquadmath-suport --disable-libitm --disable-libgomp --with-tune=generic --with-arch_32=x86-64 --build=x86_64-amazon-linux
Thread model: posix
gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-8-21 19:20:00 | 显示全部楼层

回复 3# 的帖子


有可能这个版本的gcc与php 7.2有兼容问题

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2018-8-21 20:28:08 | 显示全部楼层

请问需要指定什么版本的gcc 才可以安装php 7.2
发表于 2018-8-22 09:20:02 | 显示全部楼层

回复 6# 的帖子


这个不确定,我们这边的amazon linux 2上测试没有问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-18 00:30 , Processed in 0.028163 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表