--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: nginx-mod-http-perl-1.10.3-1.el6.x86_64
--> Finished Dependency Resolution Error: Package: nginx-mod-http-perl-1.10.3-1.el6.x86_64 (epel)
Requires: perl(:MODULE_COMPAT_5.10.1) Error: Package: nginx-1.10.3-1.el6.x86_64 (epel)
Requires: libpcre.so.0()(64bit) You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows: hypervfcopyd-0-0.34.20180415git.el7.x86_64 has missing requires of
kernel >= ('0', '3.10.0', '384.el7')
hypervkvpd-0-0.34.20180415git.el7.x86_64 has missing requires of
kernel >= ('0', '3.10.0', '384.el7')
hypervvssd-0-0.34.20180415git.el7.x86_64 has missing requires of
kernel >= ('0', '3.10.0', '384.el7')

今天在CentOS7上使用yum安装nginx的时候爆出来的上面的错误,查询了所有资料,发现关于这个错误的极少,不过还是有一个帖子里给出了答案,创建一个文件 /etc/yum.repos.d/nginx.repo,并将下面的内容复制进去:

[nginx]  
name=nginx repo  
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/  
gpgcheck=0  
enabled=1

再次安装发现可以了。

Last modification:November 26th, 2019 at 12:31 pm