我有一个新安装的 Centos7,我想安装 Varnish 3.0;根据https://www.varnish-cache.org/installation/redhat我已经安装了 repo varnish-3.0.el6.rpm 但是...
[root@reverse ~]# yum --disablerepo="*" --enablerepo="varnish-3.0" install varnish
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package varnish.x86_64 0:3.0.7-1.el6 will be installed
--> Processing Dependency: varnish-libs = 3.0.7-1.el6 for package: varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libvarnishapi.so.1()(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Running transaction check
---> Package varnish.x86_64 0:3.0.7-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.7-1.el6.x86_64
---> Package varnish-libs.x86_64 0:3.0.7-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-libs-3.0.7-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: varnish-3.0.7-1.el6.x86_64 (varnish-3.0)
Requires: libpcre.so.0()(64bit)
Error: Package: varnish-libs-3.0.7-1.el6.x86_64 (varnish-3.0)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我该如何解决这个问题?
答案1
您正在尝试将适用于 EL6 的软件包安装到 EL7 上。这不会起作用,也没有办法让它起作用。它们是不是兼容的。
如果你真的想经营一家老的Varnish 版本,则使用 EL6 开始。EPEL 中为 EL7 提供的 Varnish 版本是 4.0,因此不太可能会为 EL7 构建 3.0 版本。