利用自制的,关键是警告消息:
~/code/foss/java/jzmq$ brew install pkg-config
==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
==> make install
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
==> Summary
/usr/local/Cellar/pkg-config/0.25: 8 files, 232K, built in 19 seconds
如果你看一下/usr/local/Cellar/pkg-config/0.25/share/aclocal/,您将看到:
$ ls /usr/local/Cellar/pkg-config/0.25/share/aclocal/
pkg.m4
您需要添加/usr/local/Cellar/pkg-config/0.25/share/aclocal/到/ usr /共享/ aclocal会/ dirlist,像这样:
$ cat /usr/share/aclocal/dirlist
/usr/local/share/aclocal
/usr/local/Cellar/pkg-config/0.25/share/aclocal/
然后重新运行autogen和其他步骤。
如果你想编译jzmq风暴,得到该库中的代码:https://github.com/asmaier/jzmq。它是https://github.com/nathanmarz/jzmq中的一个分支,包含两个修复程序,使代码能够在Java 1.7.0_25的Mac OS X 10.8.3上编译。 – asmaier 2013-10-16 15:16:45