【发布时间】:2010-11-28 15:07:57
【问题描述】:
我正在尝试在 RedHat Linux 机器上构建 ZooKeeper。 (ZooKeeper 到底是什么可能并不重要 :-)
当我按照包装说明进行操作时,我得到:
$ autoreconf -if
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
我无法在标准位置安装 CPPPUNIT。 (没有root权限,系统组 有一个与标准配置“无偏差”的政策。)
我通过注释掉对
AM_PATH_CPPUNIT 在我的 configure.ac 文件中,但我真正想做的是
是在我的个人目录中安装 CPPPUNIT 并指向它,但我
在弄清楚如何告诉 autoconf/auotmake 方面没有取得太大进展
系统在非标准的地方寻找它。任何人都有任何提示
该怎么做?
【问题讨论】:
-
你可能应该用 cppunit 提交一个错误报告,因为他们正在践踏 automake 的命名空间。以“AM_”开头的(m4 宏)名称保留供 automake 使用。
-
如果你只是想安装包,为什么要运行 autoreconf?如果他们的打包说明告诉您这样做,而不是为您提供可以直接构建的 tarball,那么您应该将其归档为错误报告。他们甚至不应该要求你安装 autoconf,更不用说要求你使用它了。
标签: autoconf configure automake apache-zookeeper