如何在Mac OS X上编译rabbitmq-c库?
我无法在Mac OS 10.6.6上编译如何在Mac OS X上编译rabbitmq-c库?,rabbitmq,Rabbitmq,我无法在Mac OS 10.6.6上编译rabbitmq-c库 我打算针对它构建phpampq扩展 我已经根据尝试了rabbitmq-c和rabbitmq-codegen的最新分支,以及根据的特定分支 按照我得到的说明运行自动恢复-i: glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and glibtoolize: rerunning libtoolize, to keep the correct
rabbitmq-c
库
我打算针对它构建phpampq
扩展
我已经根据尝试了rabbitmq-c
和rabbitmq-codegen
的最新分支,以及根据的特定分支
按照我得到的说明运行自动恢复-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
文件有关。我通过安装pkg config解决了同样的问题:
sudo port install pkgconfig
你应该在RabbitMQ讨论邮件列表上问这个问题。rabbitmq-c的当前维护人员回答了这里的问题。或者,在GitHub页面上打开一个问题: