yum安裝php Requires: libzip5(x86-64) >= 1.3.2

在作實驗時,使用rpm包安裝php時,系統自帶的版本老是很舊。想安裝新版本的php rpm包時,又發現各類依賴包版本達不到要求。javascript

Error: Package: php-pecl-zip-1.15.2-1.el6.remi.5.6.x86_64 (remi)
           Requires: libzip5(x86-64) >= 1.3.2
Error: Package: php-pecl-zip-1.15.2-1.el6.remi.5.6.x86_64 (remi)
           Requires: libzip.so.5()(64bit)

因此,只能從remi源來獲取php,可是隻配置remi還不夠,由於它只有php各個版本相關的包,其餘依賴包(如libzip5)和相關工具(如php-fpm)都放在remi safe源中的,所以須要同時配置remi源和remi safe源,remi safe中存放的是安裝php過程當中可能須要的包以及其餘相關工具,例如依賴包libzip五、php容器php-fpm。php

[root@xuexi ~]# cat /etc/yum.repos.d/remi.repo
[remi]
name=remirepo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/6/php56/x86_64/
enable=1
gpgcheck=0

[remisafe]
name=remisaferepo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/6/safe/x86_64/
enable=1
gpgcheck=0

再yum安裝就一路順利了。css

yum --disablerepo=* --enablerepo=remi* -y install php php-fpm
相關文章
相關標籤/搜索