使用命令 yum install -y git 遇到出现错误的情况
提示:
错误:Package: perl-Git-1.8.2.3-1.el5.x86_64 (epel)
Requires: perl(:MODULE_COMPAT_5.8.8)
错误:Package: git-1.8.2.3-1.el5.x86_64 (epel)
Requires: libcurl.so.3()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我的解决办法是:
1、使用命令 sudo yum remove epel-release 删除 epel-release.noach
2、sudo yum install -y epel-release 将安装新版本epel-release.noach
3、然后再使用命令 sudo yum install -y git 就可以顺利完成安装git了