How to install 0MQ on Ubuntu 16.04?

I am confused with all the packages apt-cache outputs:

$ apt-cache search libzmq
libzmq-dbg - lightweight messaging kernel (debugging symbols)
libzmq-dev - lightweight messaging kernel (development files)
libzmq-java - ZeroMQ Java bindings (jzmq)
libzmq-java-doc - Documentation for ZeroMQ Java bindings (jzmq)
libzmq-jni - ZeroMQ Java bindings (jzmq)
libzmq1 - lightweight messaging kernel (shared library)
libzmq3-dev - lightweight messaging kernel (development files)
libzmq5 - lightweight messaging kernel (shared library)
libzmq5-dbg - lightweight messaging kernel (debugging symbols)
libzmqpp-dev - High-level C++ bindings for zeromq3 - development files
libzmqpp3 - High-level C++ bindings for zeromq3

libzmq5 is for 0MQ 4.1 stable. So I just install libzmq5 libzmq5-dbg? The names are quite confusing. The package description doesn't help at all.

If I would like to install 0MQ 4.1, do I have to also install libzmq-dbg and libzmq-dev?

1

1 Answer

  1. Download the latest stable release from their site, which is currently zeromq-4.2.1.tar.gz, and extract the files.
  2. Make sure you have the packages they require installed.
  3. Install checkinstall since it is helpful to remove ZMQ later on.
  4. Configure, make, install, save the deb for later (or don't, up to you).

    wget
    tar -xvzf zeromq-4.2.1.tar.gz
    cd zeromq-4.2.1/
    sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
    sudo apt-get install checkinstall
    ./configure
    make
    sudo checkinstall
    sudo ldconfig

The installation with checkinstall generates a zeromq_4.2.1-1_amd64.deb that can be used to remove the package. This is done with sudo dpkg -r zeromq.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like