所以我想升級php版本。我已經刪除了所有的5.4東西和依賴關係。升級到php 5.5的錯誤Centos 7 Apache 2.4
我下面這個鏈接https://webtatic.com/packages/php55/
我執行前兩個步驟:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
那麼這樣的:
[[email protected] ~]# yum install php55w php55w-opcache
它做一些東西,然後我得到這些錯誤:
--> Finished Dependency Resolution
Error: Package: php55w-common-5.5.25-1.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
Error: Package: php55w-5.5.25-1.w6.x86_64 (webtatic)
Requires: httpd-mmn = 20051115
Installed: httpd-2.4.6-31.el7.centos.x86_64 (@base)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
發現mmn表示模塊幻數。而且似乎找不到centos的libgmp.so.3,所以我打算打破我的電腦。
謝謝
你試過'Remi's'回購PHP嗎? https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/ –
libgmp.so來自在CentOS 5.5上運行openssl rpm。 'rpm -qf/usr/lib/openssl/engines/libgmp.so' openssl-0.9.8e-12.el5_4.6。你有沒有安裝openssl? – GoinOff
@巴拿馬傑克非常感謝你。我跟着這一步邁出了一步,它的工作。什麼救生員 –