Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ZeroMQ Clojure Library

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.org
Octocat-spinner-32 project.clj
README.org

Zilch: Clojure ZeroMQ Library

Wha?

Clojure zeromq code for messin’ ‘round

Building

Mac

ZeroMQ
Install XCodeInstall Java Developer Package (needed for JNI)Install HomebrewHack pkg-config for mac
brew install pkg-config
sudo ln -sf /usr/local/share/aclocal/pkg.m4 /usr/share/aclocal/
  
Install ZeroMQ
git clone http://github.com/zeromq/zeromq2.git
cd zeromq2
./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 install
  
Install 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
  

Test

lein test

Use

See test/ code for examples

Something went wrong with that request. Please try again.