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/

相关文章:

xml - 使用 XPATH 从不同的子元素中提取值

node.js - 如何在 npm install 中使用预安装的二进制文件(zeromq)而不是使用 node-gyp 工具构建?

python - ZeroMQ:负载平衡许多 worker 和一个主人

c++ - 如何正确理解ZeroMQ的ZMQ_RCVHWM选项?

bash - 如何在 Bash 中写入二进制数据

bash - unix diff 并排结果?

python - repr 足以防止 Python 中的 shell 注入(inject)吗?

installation - 在Inno Setup中执行已安装的批处理文件

c# - 接收 'Install' 方法中使用的参数的安装程序类

installation - 安装 Visual Studio 2015 "setup blocked"出现 10 个错误