Clojure zeromq code for messin’ ‘round
Install XCodeInstall Java Developer Package (needed for JNI)Install HomebrewHack pkg-config for macbrew install pkg-config sudo ln -sf /usr/local/share/aclocal/pkg.m4 /usr/share/aclocal/Install ZeroMQ
git clone https://github.com/zeromq/libzmq cd libzmq ./autogen.sh FLAGS="-arch i386" CFLAGS="$CFLAGS ${FLAGS}" CXXFLAGS="$CXXFLAGS ${FLAGS}" \ ./configure --disable-dependency-tracking make mv src/.libs/libzmq.1.dylib libzmq.32.dylib make clean FLAGS="-arch x86_64" CFLAGS="$CFLAGS ${FLAGS}" CXXFLAGS="$CXXFLAGS ${FLAGS}" \ ./configure --disable-dependency-tracking make mv src/.libs/libzmq.1.dylib libzmq.64.dylib lipo -create libzmq.32.dylib libzmq.64.dylib -output src/.libs/libzmq.1.dylib make installInstall JZMQ
git clone http://github.com/zeromq/jzmq.git cd jzmq ./autogen.sh JAVA_HOME=$(/usr/libexec/java_home) \ ./configure --disable-dependency-tracking make && make install mvn deploy:deploy-file \ -Durl=file:///${HOME}/.m2/repository \ -Dfile=/usr/local/share/java/zmq.jar \ -DgroupId=org.zeromq \ -DartifactId=zmq \ -Dversion=2.0-SNAPSHOT \ -Dpackaging=jar
lein test
See test/ code for examples