1

在 Fedora-21 机器上安装 nginx 时,出现以下错误:

命令:

sudo yum 安装 nginx`

错误:(仅显示最后几行)

--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: 1:nginx-1.6.3-6.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 1:nginx-1.6.3-6.el7.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: 1:nginx-1.6.3-6.el7.x86_64
--> Finished Dependency Resolution Error: Package: 1:nginx-1.6.3-6.el7.x86_64 (epel)
           Requires: libperl.so()(64bit) Error: Package: 1:nginx-1.6.3-6.el7.x86_64 (epel)
           Requires: libgd.so.2()(64bit) Error: Package: 1:nginx-1.6.3-6.el7.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.16.3)  You could try using --skip-broken to work around the problem  You could try running: rpm -Va --nofiles --nodigest

在做了一些实验后,我发现问题是由于安装了 epel-release 包。所以为了转身,我不得不卸载 epel 包(使用 yum remove epel-release)。删除该软件包后,nginx 安装一切正常,然后我不得不重新安装 epel-release 软件包。我想知道是否有其他更好的选择来解决这个问题?

4

0 回答 0