Steps:
With reference to following blogs written by Vivek http://technicalvvkydv.blogspot.in/2011/06/making-zeromq-jar-for-mac.html to install zeromq and by Jean http://jsdelfino.blogspot.in/2012/08/autoconf-and-automake-on-mac-os-x.html to install auto tools. I faced few issues ( one of them is following error ./configure: line 15284: ` PKG_CHECK_MODULES) which I tried to address with following steps:
At the end you will find zmq.jar generated at location /usr/local/share/java/
With reference to following blogs written by Vivek http://technicalvvkydv.blogspot.in/2011/06/making-zeromq-jar-for-mac.html to install zeromq and by Jean http://jsdelfino.blogspot.in/2012/08/autoconf-and-automake-on-mac-os-x.html to install auto tools. I faced few issues ( one of them is following error ./configure: line 15284: ` PKG_CHECK_MODULES) which I tried to address with following steps:
- Install gcc ( to install gcc you need to install xcode 5 download it from https://developer.apple.com/xcode/ and install.)
- Make sure you have java installed. If you want to install JDK 7 refer this http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
- Make sure you have git installed to checkout zeromq java binding source code.
- Make sure that libtool, autoconf, automake are installed. (refer http://jsdelfino.blogspot.in/2012/08/autoconf-and-automake-on-mac-os-x.html). I preferred installing binaries in system directory directly. If you have already installed it then you can skip this step.
# create a temporary folder to checkout / download source code and build the same $ mkdir build $ cd build $ curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz $ tar -xzf autoconf-2.69.tar.gz $ cd autoconf-2.69 $ ./configure $ make $ sudo make install $ cd ../ $ curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz $ tar -xzf automake-1.14.tar.gz $ cd automake-1.14 $ ./configure $ make $ sudo make install $ cd ../ $ curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz $ tar xzf libtool-2.4.2.tar.gz $ cd libtool-2.4.2 $ ./configure $ make $ sudo make install $ cd ../
- Install core zero mq library.
#Download latest zermoq source code http://zeromq.org/area:download #I tried it with zeromq-3.2.4.tar.gz (http://download.zeromq.org/zeromq-4.0.4.tar.gz) $ curl -OL http://download.zeromq.org/zeromq-4.0.4.tar.gz $ tar -zxvf zeromq-4.0.4.tar.gz $ cd zeromq-4.0.4 $ ./configure $ make $ sudo make install $ cd ../
- Install pkg-config. If you already have it installed then you can skip this step.
$ curl -OL http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz $ tar -zxvf pkg-config-0.28.tar.gz $ cd pkg-config-0.28 $ ./configure --with-internal-glib $ make $ sudo make install $ cd ../
- Install / generate zeromq JAVA binding for more details refer http://zeromq.org/bindings:java
$ git clone https://github.com/zeromq/jzmq.git $ cd jzmq # if you already have JAVA_HOME set you can skip this $ export JAVA_HOME=`/usr/libexec/java_home` $ ./autogen.sh $ ./configure $ make $ sudo make install
At the end you will find zmq.jar generated at location /usr/local/share/java/