play/type blog

We are creating Germany's juiciest event platform, boomloop.com. Because we love the Internet more than our own mothers. See for yourself. check out boomloop.com


RabbitMQ is a reliable, high performance queue Server written in Erlang.

Lets fiddle.

Before you start

Before you can start, you have to have installed Macports. Just in case, here’s how it’s done:

  • Register at the Apple Developers Connection. Go to downloads/developer tools, and download the latest version of the XCode Developer tools. Grab a Flask of coffee.
  • Download and run the latest macports installer http://svn.macports.org/repository/macports/downloads/. Grab another Flask.

Installing Erlang

If you’re on the 10.5.3 update, you have to edit the erlang portsfile to avoid a bus error bug:

    sudo vi /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/erlang/Portfile

Delete this line from configure.args attribute:

    --enable-hipe \

Now you can use port to install erlang:

    port install erlang

this is going to take a while.

Installing RabbitMQ

Grab and unpack the lastest generic Unix version of RabbitMQ. The current version as of writing is 1.4.0.

    mkdir /tmp/rabbit-mq && cd /tmp/rabbit-mq
    wget http://www.rabbitmq.com/releases/rabbitmq-server/v1.4.0/rabbitmq-server-generic-unix-1.4.0.tar.gz
    tar xvfz rabbitmq-server-generic-unix-1.4.0.tar.gz

Now move this stuff into erlang’s magical mystery directory:

    sudo mv rabbitmq_server-1.4.0 /opt/local/lib/erlang/lib

You’re good to go! Start up like this:

    sudo /opt/local/lib/erlang/lib/rabbitmq_server-1.4.0/sbin/rabbitmq-server

Change permissions if you don’t want to run this as root.

UPDATE: I’ve been having troubes starting the server up, since the tables in the mnesia database backing rabbitmq are locked. I don’t know why this is the case. You can get this running again brute force styleee by deleting the database:

    sudo rm -rf /var/lib/rabbitmq/mnesia