Search code examples
jzmq

Configuration for Java binding for ZeroMQ (0MQ) with no root privileges on Linux


I am a novice with zeroMQ and I am stuck at binding ØMQ with java on a server running CentOS release 5.9.

Unfortunately, I do not have super user/root privileges on the server and am trying to install ØMQ as a normal user with restricted privileges. I have installed ØMQ by following instructions on http://www.zeromq.org/area:download

Make sure that libtool, autoconf, automake are installed.
Check whether uuid-dev package, uuid/e2fsprogs RPM or equivalent on your system is installed.
Unpack the .tar.gz source archive.
Run ./configure, followed by make.

Could not run the following obviously

To install ØMQ system-wide run sudo make install.
On Linux, run sudo ldconfig after installing ØMQ.

Then I attempted to install jzmq.

  1. Cloned [git clone https://github.com/zeromq/jzmq.git]
  2. Ran autogen.sh
  3. Ran configure

At this point I get the following error

checking for ZeroMQ... no
checking zmq.h usability... no
checking zmq.h presence... no
checking for zmq.h... no
configure: error: cannot find zmq.h

As a result of the above error I am not able to run java tests and get error "no jzmq in java.library.path".

Can anybody help/direct me to how to get java binding for zeromq work when you dont have root privileges to install it? Its difficult to get IT department to install a new software on servers.

Appreciate your help.

Note: I do not have write permissions to /usr directory

Thanks GBP


Solution

  • This can be overcome by adding --with-zeromq=/home/user/zeromq (installation directory of zeromq)

    ./configure --with-zeromq=/home/user/zeromq
    

    Other steps include export LD_LIBRARY_PATH=/home/user/zeromq/lib