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.
First, obtain the source code from our GitHub repositories:
git clone https://github.com/rabbitmq/rabbitmq-server.git
Then, use GNU Make to pull down dependencies and build the server:
cd rabbitmq-server make
In order to build RabbitMQ, you will need a few tools.
RabbitMQ requires a recent version of Python 2 and simplejson.py (an implementation of a JSON reader and writer in Python), for generating AMQP 0-9-1 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-broker TEST_TMPDIR=/some/other/location/for/rabbitmq-test-instances
In practice, building RabbitMQ server from source is of limited use unless an easy to deploy package (e.g. a Debian one) can be produced.
Everything related to packaging the RabbitMQ server is in the rabbitmq-server-release repository. Furthermore, this repository has the list of plugins shipped with the broker. Please refer to the README.md for instructions to create the source archive or any binary packages.