$ git clone https://github.com/nathanmarz/jzmq.git $ cd jzmq $ ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force configure.ac:14: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
$ ./configure $ make ... make[1]: *** No rule to make target classdist_noinst.stamp', needed byorg/zeromq/ZMQ.class'. Stop. make: *** [all-recursive] Error 1
解决方法: touch src/classdist_noinst.stamp
$ make ... make[1]: *** No rule to make target org/zeromq/ZMQException.class, needed byall'. Stop. make: *** [all-recursive] Error 1
解决方法: cd src javac -d . org/zeromq/*.java
$ cd ../ $ make ... In file included from ZMQ.cpp:25: In file included from ./util.hpp:23: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/include/jni.h:45:10: fatal error: 'jni_md.h' file not found #include "jni_md.h" ^ 1 error generated. make[2]: *** [libjzmq_la-ZMQ.lo] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1