溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題

發(fā)布時(shí)間:2021-12-29 10:32:05 來源:億速云 閱讀:142 作者:iii 欄目:編程語言

這篇文章主要講解了“怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題”吧!

php5.4系統(tǒng)升級(jí)出錯(cuò)的解決辦法:1、安裝libmcrypt,libmcrypt-devel;2、升級(jí)EPEL源;3、重新升級(jí)即可。

怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題

本文操作環(huán)境:CentOS7.3系統(tǒng)、php5.4版、Dell G3電腦。

如何解決php5.4 系統(tǒng)升級(jí)出錯(cuò)問題?

CentOS7 PHP5.4 升級(jí) PHP5.6 缺少libmcrypt問題解決辦法

系統(tǒng)為CentOS7.3,安裝PHP后,版本為5.4,當(dāng)進(jìn)行升級(jí)5.6時(shí)發(fā)生錯(cuò)誤:報(bào)錯(cuò)缺少libmcrypt.so.4()(64bit)庫(kù)

需要安裝libmcrypt,libmcrypt-devel:

yum install libmcrypt libmcrypt-devel

直接輸入以上指令,出錯(cuò)!問題為EPEL源未更新到最新版本。

需要升級(jí)EPEL源:

命令:yum -y install epel-release

yum -y install epel-release
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
 * webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be updated
---> Package epel-release.noarch 0:7-11 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package                      Arch                   Version               Repository              Size
========================================================================================================
Updating:
 epel-release                 noarch                 7-11                  extras                  15 k

Transaction Summary
========================================================================================================
Upgrade  1 Package

Total download size: 15 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
epel-release-7-11.noarch.rpm                                                     |  15 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : epel-release-7-11.noarch                                                             1/2
  Cleanup    : epel-release-7-9.noarch                                                              2/2
  Verifying  : epel-release-7-11.noarch                                                             1/2
  Verifying  : epel-release-7-9.noarch                                                              2/2

Updated:
  epel-release.noarch 0:7-11

Complete!

從7-9 升級(jí)至7-11

EPEL最新是7-12,因此再輸入一次上面的指令:

 yum -y install epel-release
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink                                                             | 8.6 kB  00:00:00
epel                                                                             | 5.4 kB  00:00:00
(1/3): epel/x86_64/updateinfo                                                    | 1.0 MB  00:00:00
(2/3): epel/x86_64/group_gz                                                      |  90 kB  00:00:01
(3/3): epel/x86_64/primary_db                                                    | 6.9 MB  00:01:00
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * epel: mirrors.aliyun.com
 * extras: 100.125.0.40
 * updates: 100.125.0.40
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-12 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package                      Arch                   Version                 Repository            Size
========================================================================================================
Updating:
 epel-release                 noarch                 7-12                    epel                  15 k

Transaction Summary
========================================================================================================
Upgrade  1 Package

Total download size: 15 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
epel-release-7-12.noarch.rpm                                                     |  15 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : epel-release-7-12.noarch                                                             1/2
  Cleanup    : epel-release-7-11.noarch                                                             2/2
  Verifying  : epel-release-7-12.noarch                                                             1/2
  Verifying  : epel-release-7-11.noarch                                                             2/2

Updated:
  epel-release.noarch 0:7-12

完成升級(jí)7-12。

再次安裝

libmcrypt,libmcrypt-devel:

yum install libmcrypt libmcrypt-devel

yum install libmcrypt libmcrypt-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * epel: my.mirrors.thegigabit.com
 * extras: 100.125.0.40
 * updates: 100.125.0.40
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package libmcrypt-devel.x86_64 0:2.5.8-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package                       Arch                 Version                    Repository          Size
========================================================================================================
Installing:
 libmcrypt                     x86_64               2.5.8-13.el7               epel                99 k
 libmcrypt-devel               x86_64               2.5.8-13.el7               epel                13 k

Transaction Summary
========================================================================================================
Install  2 Packages

Total download size: 112 k
Installed size: 302 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): libmcrypt-2.5.8-13.el7.x86_64.rpm                                         |  99 kB  00:00:00
(2/2): libmcrypt-devel-2.5.8-13.el7.x86_64.rpm                                   |  13 kB  00:00:00
--------------------------------------------------------------------------------------------------------
Total                                                                   1.2 MB/s | 112 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libmcrypt-2.5.8-13.el7.x86_64                                                        1/2
  Installing : libmcrypt-devel-2.5.8-13.el7.x86_64                                                  2/2
  Verifying  : libmcrypt-devel-2.5.8-13.el7.x86_64                                                  1/2
  Verifying  : libmcrypt-2.5.8-13.el7.x86_64                                                        2/2

Installed:
  libmcrypt.x86_64 0:2.5.8-13.el7                 libmcrypt-devel.x86_64 0:2.5.8-13.el7

Complete!

成功!

最后升級(jí)PHP,指令:

yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring

感謝各位的閱讀,以上就是“怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對(duì)怎么解決php5.4系統(tǒng)升級(jí)出錯(cuò)問題這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

php
AI