我正在尝试在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?
答案 0 :(得分:2)
我遇到了同样的问题。安装pkg-config
Temp_Cover_StoryBaseList_DatabaseHandler db = new Temp_Cover_StoryBaseList_DatabaseHandler(context, currentUsername);
db.addStory(pointer, filePath);
db.close();
答案 1 :(得分:1)
首先,不要手动安装任何东西。这会将非托管库和标头添加到您的文件系统中,将来您将遇到很多问题。请使用自制软件
brew install zeromq
如果你真的想手动编译和安装它 - 你缺少pkg-config,它本身必须安装 - 通过自制程序或手动编译。
cd /tmp
curl -OL https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
tar xzvf pkg-config-0.29.1
cd pkg-config-0.29.1
./configure --with-internal-glib
make
sudo make install