rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum list "php*"
yum install php71w
CentOS7下升级PHP碰到的问题:
Resolving Dependencies
--> Running transaction check
---> Package php71w-common.x86_64 0:7.1.14-1.w6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: php71w-common-7.1.14-1.w6.x86_64
--> Processing Conflict: php71w-common-7.1.14-1.w6.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64
Error: Package: php71w-common-7.1.14-1.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
这个问题百度里找不到解决办法, 源码编译 gmp-4.3.1-12.el6.i686.rpm 生成了 libgmp.so.3 库也不行。
最后翻墙上了google, 一下就找到解决办法了。
下载安装 compat-libgmp-4.3.1-1.sl7.x86_64.rpm
继续安装又碰到问题:
Error: php70w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64Error: Package: php70w-7.0.27-1.w6.