hitch编译的问题

来源:互联网 发布:淘宝二层牛皮除牛反绒 编辑:程序博客网 时间:2024/06/16 16:26

编译hitch的过程出现如下错误:

[Web01 root@iZ2zeg6umj2lyn48376fyjZ hitch-master]#./bootstrap
+ set -o errexit
+ aclocal -I .
+ autoconf
configure.ac:46: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

网上搜索提示可能的问题
1. pkg-config package was missing.
我检查了pkg-config 存在,并且相关的依赖的库都已经安装正常
2. 编译加m4_pattern_allow参数
即:./configure –enable-m4_pattern_allow
尝试还是不行

解决办法:
最后判断是aclocal相关的宏没有找到,aclocal -I . 这行改为 aclocal -I . -I /usr/share/aclocal/
目标是找到相关的aclocal 相关的 .m4文件,尤其是/usr/share/aclocal/pkg.m4