我无法在Mac OS 10.6.6上编译rabbitmq-c
库
我打算针对它构建php-ampq
扩展名。
我根据instructions here和instructions here的特定分支尝试了rabbitmq-c
和rabbitmq-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
我通过在线搜索找到的大部分内容都表明我没有libtool
或automake
。我有两个。
我担心我不能使用autoconf,所以我不知道如何/在哪里更改configure.ac,或者警告是否与丢失的ltmain.sh
文件有关。< / p>
答案 0 :(得分:0)
我通过安装pkg-config解决了同样的问题:
sudo port install pkgconfig