【问题标题】:Failed to install Varnish due to dependencies errors由于依赖项错误,无法安装 Varnish
【发布时间】:2016-01-27 14:20:33
【问题描述】:

我正在尝试在 CentOS 6.7 上安装 varnish 并出现以下错误。有人可以帮忙吗?

yum 安装清漆

.....

Finished Dependency Resolution
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: systemd-units
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
           Requires: systemd-sysv
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

【问题讨论】:

    标签: varnish


    【解决方案1】:

    您需要从源代码安装清漆。请按以下步骤操作:

    https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source

    首先下载压缩包:

    http://repo.varnish-cache.org/source/

    然后安装列出的软件包:

    yum install -y autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz
    
    tar xzvf downloaded-filename.tar.gz
    cd name-of-the-folder-from-tarball
    sh autogen.sh
    sh configure
    make
    make check
    (go make some tea)
    make install
    

    阅读启动服务注意事项:https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source

    【讨论】:

    【解决方案2】:

    我不允许发表评论,但我已对上面的答案投了赞成票。我只是用它在 Amazon Linux 上安装 Varnish 5.2。这种方法的缺点是你没有得到一个整洁的“sudo service varnish start”选项,但好处是至少你有 Varnish 5。

    对上述答案的一个更改。源的位置发生了变化。您现在可以在这里找到它:

    http://varnish-cache.org/releases/

    【讨论】:

      猜你喜欢
      • 2022-10-15
      • 1970-01-01
      • 2012-06-05
      • 2017-06-26
      • 2011-11-20
      • 1970-01-01
      • 1970-01-01
      • 2016-12-01
      • 1970-01-01
      相关资源
      最近更新 更多