首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Mac OS X上编译rabbitmq-c库?

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

Stack Overflow用户
提问于 2012-02-24 20:32:09
回答 1查看 1.3K关注 0票数 0

我无法在MacOS10.6.6上编译rabbitmq-c

我打算在此基础上构建php-ampq扩展。

我根据instructions here尝试了rabbitmq-crabbitmq-codegen的最新分支,并根据instructions here尝试了具体的分支。

按照我得到的指令运行autoreconf -i

代码语言:javascript
复制
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我得到了:

代码语言:javascript
复制
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文件有关。

EN

回答 1

Stack Overflow用户

发布于 2012-06-27 16:12:13

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

代码语言:javascript
复制
sudo port install pkgconfig
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9430834

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档