Steps: With reference to following blogs written by Vivek blog to install zeromq and by
Jean blog 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 installgcc
you need to installxcode
5 download it from `https://developer.apple.com/xcode/ and install.)Make sure you have
java
installed. If you want to installJDK 7
refer this http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.htmlMake sure you have
git
installed to checkoutzeromq
java binding source code.Make sure
libtool
,autoconf
,automake
are installed. refer. 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
ZeroMQ
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
$ 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/