php5.4 시스템 업그레이드 오류에 대한 해결 방법: 1. libmcrypt, libmcrypt-devel을 설치합니다. 2. EPEL 소스를 업그레이드합니다.
이 기사의 운영 환경: CentOS7.3 시스템, php5.4 버전, Dell G3 컴퓨터.
php5.4 시스템 업그레이드 오류 문제를 해결하는 방법은 무엇입니까?
CentOS7 PHP5.4 libmcrypt 누락 문제에 대한 PHP5.6 솔루션 업그레이드
시스템은 CentOS7.3입니다. PHP를 설치한 후 버전은 5.4입니다. libmcrypt.so 오류가 발생합니다. .4가 누락되었습니다(오류 보고됨) )(64비트) library
libmcrypt를 설치해야 합니다. libmcrypt-devel:
yum install libmcrypt libmcrypt-devel
위 명령을 직접 입력하면 오류가 발생합니다! 문제는 EPEL 소스가 최신 버전으로 업데이트되지 않았다는 것입니다.
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에서 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
업그레이드 7-12를 완료하세요.
libmcrypt를
libmcrypt, libmcrypt-devel 다시 설치:
yum 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!
성공!
마지막으로 PHP를 업그레이드하세요. 명령:
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
권장 학습: "PHP 비디오 튜토리얼"
위 내용은 php5.4 시스템 업그레이드 오류 문제를 해결하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!