我无法在MacOS10.6.6上编译rabbitmq-c库
我打算在此基础上构建php-ampq扩展。
我根据instructions here尝试了rabbitmq-c和rabbitmq-codegen的最新分支,并根据instructions here尝试了具体的分支。
按照我得到的指令运行autoreconf -i:
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
glibtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:12: installing `./config.sub'
configure.ac:12: required file `./ltmain.sh' not found
configure.ac:3: installing `./missing'
configure.ac:3: installing `./install-sh'
configure.ac:12: installing `./config.guess'
examples/Makefile.am: installing `./depcomp'
autoreconf: automake failed with exit status: 1运行简单的autoconf我得到了:
configure.ac:3: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:12: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.ac:90: error: possibly undefined macro: AM_CONDITIONAL我在网上搜索到的大多数信息都表明我没有libtool或automake。我两样都有。
恐怕我在autoconf方面已经超出了我的能力范围,所以我不知道如何/在哪里修改configure.ac,也不知道这个警告是否与丢失的ltmain.sh文件有关。
发布于 2012-06-27 16:12:13
我通过安装pkg-config解决了同样的问题:
sudo port install pkgconfighttps://stackoverflow.com/questions/9430834
复制相似问题