无法在Debian 6上编译最新的Varnish

我刚刚克隆了最新的清漆git-repository以尝试应用增强(从git://github.com/varnish/Varnish-Cache.git)

网站上列出的所有依赖关系都已安装。

我运行以下命令: ./autogen.sh – >正常工作

./configure – >也能正常工作

make – >失败,出现以下错误:

 creating libvmod_std.la (cd .libs && rm -f libvmod_std.la && ln -s ../libvmod_std.la libvmod_std.la) ======================================== You need rst2man installed to make dist ======================================== make[3]: *** [vmod_std.3] Error 1 make[3]: Leaving directory `/tmp/varnish-cache/lib/libvmod_std' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/varnish-cache/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/varnish-cache' make: *** [all] Error 2 

我已经尝试安装rst2man,但它不能被发现,因为它是一个虚拟包?

 apt-get install rst2man Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package rst2man 

然后我试着安装python-docutils,但是也没有解决这个问题。

任何帮助,将不胜感激!

提前致谢…

编辑:

阅读答案后我跑的命令是:

我重新启动(首先git克隆现在已经不在了,因为它位于/ tmp目录中)

 cd /usr/share/ git clone git://github.com/varnish/Varnish-Cache.git apt-get install python-docutils ./autogen.sh ./configure make 

=>同样的错误;)

在成功安装python-docutils之后,请确保清除清漆sourcetreeconfigurationcaching并再次运行configure。 那么make就会有他所需要的(rst2man程序,就是这样)

做了一个testing。 运行configure / make没有rst2man,得到错误。 在安装python-docutils之后,我又跑了一遍configuration好了,snip:

 eu-we1:~/tmp/Varnish-Cache# ./configure |grep rst checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for rst2man... rst2man checking for rst2html... rst2html configure: WARNING: libedit not found, disabling libedit support configure: WARNING: won't look for sendfile() on i686-pc-linux-gnu 

使运行正常,退出代码= 0我想你只需要确保rst2man,也可能rst2html以及(不知道)通过configuration脚本find。 我用清漆git克隆validation。