This section describes the process for obtaining a copy of the RabbitMQ server source code, as well as instructions for building the server from source.
$ hg clone http://hg.rabbitmq.com/rabbitmq-codegen $ hg clone http://hg.rabbitmq.com/rabbitmq-server $ cd rabbitmq-server $ make
If you choose to check the code out using mercurial, be aware that the code-generation module is a dependency of the server library. If you're working with a released source code distribution, though, the code-generation module is included.
In order to build RabbitMQ, you will need a few tools.
RabbitMQ requires a recent version of Python and simplejson.py (an implementation of a JSON reader and writer in Python), for generating AMQP framing code. simplejson.py is included as a standard json library in the Python core since 2.6 release.
Additionally, you will need
Change to the rabbitmq-server directory, and type make.
Other interesting Makefile targets include
make run MNESIA_DIR=/some/other/location/for/rabbit-mnesia