我正在尝试在 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权限,系统团队有“不偏离标准配置”的政策。)
我已经通过在我的 configure.ac 文件中注释掉对
AM_PATH_CPPUNI
T 的引用来解决这个问题,但我真正想做的是在我的个人目录中安装 CPPPUNIT 并指向它,但我没有赚太多在弄清楚如何告诉 autoconf/auotmake 系统在非标准位置查找它方面取得了进展。有人对如何做到这一点有任何提示吗?