我正在尝试在 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/