yum install php-pear php-devel gcc 执行报错:
...
--> Processing Conflict: libzip5-tools-1.5.2-1.el7.remi.x86_64 conflicts libzip < 1.1
--> Finished Dependency Resolution
Error: libzip5-tools conflicts with libzip-0.10.1-8.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
原因:
已安装的 Libzip 版本过低。
解决方法:
rpm -qa|grep libzip 或者 yum list installed | grep libzip 查询已安装的软件包,
以 yum list installed | grep libzip 为例:
[root@VM_0_15_centos runoops]# yum list installed | grep libzip
Repository epel is listed more than once in the configuration
libzip5.x86_64 1.5.2-1.el7.remi @/libzip5-1.5.2
libzip5-devel.x86_64 1.5.2-1.el7.remi @/libzip5-devel-1.5.2
libzip5-tools.x86_64 1.5.2-1.el7.remi @/libzip5-tools-1.5.2
卸载libzip软件包:
yum autoremove libzip5.x86_64 libzip5-devel.x86_64 libzip5-tools.x86_64
执行结果如下,说明卸载完成:
...
Removed:
libzip5.x86_64 0:1.5.2-1.el7.remi libzip5-devel.x86_64 0:1.5.2-1.el7.remi libzip5-tools.x86_64 0:1.5.2-1.el7.remi
Complete!
重新执行 yum install php-pear php-devel gcc 即可:
[root@VM_0_15_centos runoops]# yum install php-pear php-devel gcc
... 7/7
Installed:
php-devel.x86_64 0:5.4.16-48.el7 php-pear.noarch 1:1.9.4-23.el7_9
Dependency Installed:
libzip.x86_64 0:0.10.1-8.el7 php-cli.x86_64 0:5.4.16-48.el7 php-common.x86_64 0:5.4.16-48.el7 php-process.x86_64 0:5.4.16-48.el7
php-xml.x86_64 0:5.4.16-48.el7
Complete!
分享笔记