Compiling RabbitMQ on Ubuntu 10.04

         ·     

As part of my on going effort for realtime web updates on one of our applications I needed to install RabbitMQ HEAD (That is the development head) with the RabbitMQ STOMP adaptor. Talking on IRC channel it was recommended to me to install from source, but unfortunately the documentation is out of date. So the following will do it cleanly:

[cc lang=“bash”]

sudo apt-get install erlang-crypto erlang-snmp erlang-syntax-tools libsctp1 lksctp-tools erlang-runtime-tools erlang-mnesia erlang-public-key erlang-os-mon erlang-ssl erlang-base erlang-parsetools mercurial git-core build-essential erlang-dev zip erlang-tools erlang-src python-simplejson erlang-edoc

cd ~

hg clone http://hg.rabbitmq.com/rabbitmq-public-umbrella

cd rabbitmq-public-umbrella

make co

make

[/cc]

Updated: The following will create a Debian style package and install (replace ** with the version numbering that you wish to use:

[cc lang=“bash”]

sudo apt-get install cdbs debhelper xmlto

cd rabbitmq-server

make VERSION=1.8.** srcdist

make -C packaging/debs/Debian UNOFFICIAL_RELEASE=true package

sudo dpkg -i packaging/debs/Debian/rabbitmq-server_1.8.**-1_all.deb

[/cc]

Activating the STOMP plugin:

[cc lang=“bash”]

cd rabbitmq-public-umbrella/rabbitmq-stomp/dist

sudo cp amqp_client.ez /usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/plugins

sudo cp rabbit_stomp.ez /usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/plugins

[/cc]

Configuration file:

[cc lang=“bash”]

RABBITMQ_PLUGINS_DIR=/usr/lib/rabbitmq/lib/rabbitmq_server-1.8.1/plugins

SERVER_START_ARGS=’-rabbit_stomp listeners [{“0.0.0.0”,61613}]‘

[/cc]

Restart to activate (the activation script for plugins is depreciated):

[cc lang=“bash”]

sudo /etc/init.d/rabbitmq-server restart

[/cc]

And you should have a working RabbitMQ on Ubuntu with a STOMP adaptor.

comments powered by Disqus