bash - 如何修复 "missing some pkg-config macros"错误?

标签 bash installation zeromq

我正在尝试在 OS X 10.11.2 上安装 zeromq。为此,建议使用以下 shell 命令:

cd libzmq
./autogen.sh && configure && make -j 4

但是当我进入第二行时,出现如下错误:

configure.ac:59: error: missing some pkg-config macros (pkg-config package)
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
configure.ac:68: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.ac:69: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:253: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:427: error: missing some pkg-config macros (pkg-config package)
configure:6315: error: possibly undefined macro: AC_DISABLE_STATIC
configure:6319: error: possibly undefined macro: AC_ENABLE_STATIC
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
autogen.sh: error: autoreconf exited with status 0

如何解决这个问题并成功安装 zeromq?

最佳答案

我遇到了同样的问题。安装 pkg-config

apt-get install pkg-config

关于bash - 如何修复 "missing some pkg-config macros"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36367008/

相关文章:

r - 在Mac OS X中加载rgl软件包时出错

java - 0MQ ROUTER DEALER 范例在 Docker 容器中不起作用

python - 确保工作进程总是在 zeroMQ 中终止

bash - bash 中的 ":"是什么?冒号用作通过语句

linux - 我怎样才能只剪掉一些线,而让其他线不被处理?

linux - 找不到 BASH 命令

java - 如何将 java 方法的输出分配给 bash 脚本变量

java - 关于将Java的计算器程序转换为Exe文件

visual-studio-2012 - 如何通过wix工具集制作快捷方式和添加图标

c# - 如何保护 ZeroMQ 请求回复模式免受潜在的消息丢失?