【问题标题】:Can anyone help me with installation of varnish vagent2谁能帮我安装清漆 vagent2
【发布时间】:2013-06-20 01:35:11
【问题描述】:

我想安装这个清漆 vagent2 https://github.com/varnish/vagent2

我正在解决它,但它没有安装..它给了我以下错误..

root@ns5 [/usr/local/src/vagent2-master]# ./autogen.sh
+ aclocal
configure.ac:65: error: pkg.m4 missing, please install pkg-config
configure.ac:65: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1

现在我已经安装了 pkg-config / m4 / 最新版本的 automake / autoconf... 但它给出了这个问题。任何人都可以指导我如何通过同样的方法?

【问题讨论】:

  • 你在什么平台上

标签: centos varnish


【解决方案1】:

您似乎缺少 pkg.m4?

检查 redhat/ 目录中的 spec 文件以确定依赖关系。我们在 centos6 上测试过,我相信是 centos5,但我目前无法轻松访问机器进行测试,所以在我进一步研究之前,我建议你检查一下规范文件。

如果这没有帮助,请在 github 上打开一个问题,因为我们通常不关注 stackoverflow :)

【讨论】:

    【解决方案2】:

    您需要安装 pkgconfig。在 mac 上,您可能首先需要安装“mac ports”……这里有一篇描述解决方案的文章:

    http://www.fantageek.com/318/install-pkg-config-for-mac-osx/

    【讨论】:

      【解决方案3】:

      长话短说。要让 varnish-agent 在 centos5 上正常工作,您需要手动更新 automake 和 autoconf,这意味着 aclocal 可能无法查看 pkg.m4 的正确目录。

      假设您已经使用 yum 安装了 pkgconfig,autogen.sh 中的第 22 行应该如下所示。

      aclocal -I /usr/share/aclocal

      为了使这更容易一些,我更改了 autogen.sh 以包含上述更改。请参阅下面的提交,此外,我提供了一个 Vagrantfile 来说明如何为 varnish-agent 构建一个快乐的 centos5 vm。希望这可以帮助。

      https://github.com/varnish/vagent2/commit/3921083f5fef12f06527e3361cc880121aa6b66b

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-01-13
        • 1970-01-01
        • 2018-08-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多