利用自制的,關鍵是警告消息:
~/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