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!
8 Comments
Couldn’t find package zeromq-bin
My bad, forgot to mention that you need to add chris-lea’s zeromq ppa, I’ve updated the post.
Hi,
what was the g++ error you were getting? Did this happen during configure or make?
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++
I had to install the python-software-properties package to get the add-apt-repository command.
Today this fails for me with an unknown package:
2
E: Couldn't find package python-zeromq
I tried this instead:
2
3
...
detect/vers.c:3:17: error: zmq.h: No such file or directory
But:
2
3
4
...
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:
2
3
4
...
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?
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.
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 …