如何在Mac OS X上编译rabbitmq-c库?

时间:2012-02-24 12:32:09

标签: rabbitmq

我无法在Mac OS 10.6.6上编译rabbitmq-c

我打算针对它构建php-ampq扩展名。

我根据instructions hereinstructions here的特定分支尝试了rabbitmq-crabbitmq-codegen的最新分支。

按照我的说明运行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

我通过在线搜索找到的大部分内容都表明我没有libtoolautomake。我有两个。

我担心我不能使用autoconf,所以我不知道如何/在哪里更改configure.ac,或者警告是否与丢失的ltmain.sh文件有关。< / p>

1 个答案:

答案 0 :(得分:0)

我通过安装pkg-config解决了同样的问题:

sudo port install pkgconfig