Installing ZeroMQ on Ubuntu Lucid 10.04

I recently heard about ZeroMQ and wanted to play with it. However, following the ZeroMQ installation instructions did not really help, since I kept on getting g++ error when running make. So here’s an alternate way to install ZeroMQ on Ubuntu:

Python or Ruby

edit: Whichever language you want to use, you need to first add Chris Lea‘s zeromq ppa:

sudo add-apt-repository ppa:chris-lea/zeromq
sudo apt-get update

Python

If you are planning to use Python to work with ZeroMQ then you can install it simply by running

sudo apt-get install python-zeromq

Ruby

For Rubyists, run

sudo apt-get install zeromq-bin libzmq-dbg libzmq-dev libzmq0

then

sudo gem install zmq

and then you can go on to tutorials!

Hope that helps!

This entry was posted in programming, python, ruby. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

8 Comments

  1. junior
    Posted September 17, 2010 at 6:02 AM | Permalink

    Couldn’t find package zeromq-bin

  2. johan
    Posted September 17, 2010 at 7:08 PM | Permalink

    My bad, forgot to mention that you need to add chris-lea’s zeromq ppa, I’ve updated the post.

  3. Posted February 28, 2011 at 12:18 PM | Permalink

    Hi,

    what was the g++ error you were getting? Did this happen during configure or make?

  4. johan
    Posted February 28, 2011 at 12:24 PM | Permalink

    Well, I normally let the packager and rubygems does it job. If you’re getting a g++ error when generating the gem then you’ll need to install g++ first.

    Try

    sudo apt-get install g++

  5. Posted June 10, 2011 at 10:31 PM | Permalink

    I had to install the python-software-properties package to get the add-apt-repository command.

  6. David
    Posted October 6, 2011 at 5:25 PM | Permalink

    Today this fails for me with an unknown package:

    1
    2
    $ sudo apt-get install python-zeromq
    E: Couldn't find package python-zeromq

    I tried this instead:

    1
    2
    3
    $ pip install pyzmq
    ...
    detect/vers.c:3:17: error: zmq.h: No such file or directory

    But:

    1
    2
    3
    4
    $ sudo apt-get install libzmq-dev
    ...
    The following packages have unmet dependencies:
      libzmq-dev: Depends: libzmq1 (= 2.1.9-1chl1~lucid1) but it is not going to be installed

    And sadly:

    1
    2
    3
    4
    $ sudo apt-get install libzmq1
    ...
    The following packages have unmet dependencies:
      libzmq1: Depends: libpgm-5.1-0 (>= 5.1.116~dfsg) but it is not installable

    Looks like libpgm in Ubuntu 10.04 is out of date. A dead end or start of a long and windy road? :)

  7. Enrico
    Posted November 2, 2011 at 1:01 PM | Permalink

    I have the same problem David has.
    It looks like it might be related to the fact that the package libpgm-5.1-0 i lacking a “provides” field ( when “dpkg -s libpgm-5.1-0″ is called.

  8. Posted November 27, 2011 at 5:01 PM | Permalink

    Here are the steps I actually used, using Chris Lea’ PPA(s):

    [I am using Ubuntu Lucid 10.04]
    # sudo add-apt-repository ppa:chris-lea/zeromq
    (…)
    # sudo add-apt-repository ppa:chris-lea/libpgm
    (…)
    # sudo apt-get update
    (…)
    # sudo apt-get install libzmq1 …

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>