Building RabbitMQ Java Client Source from GitHub on Mac

For anyone that thinks of Python as a large snake, here are the steps I took to set up building the Rabbitmq java client on my mac with GitHub sources.

First, macs now come OOTB with python installed so you’re good there unless you wish to update the package. Simply type ‘python’ at the command line to see what you have. Go to http://pypi.python.org/pypi/simplejson#downloads to get the URI to pull for the source.

hedelson$ wget http://pypi.python.org/packages/source/s/simplejson/simplejson-{latest.version}.tar.gz#md5={autogenerated-hash}
hedelson$ cd /path/to/simplejson-2.1.2/
hedelson$ sudo python ez_setup.py
hedelson$ python setup.py build
hedelson$ python setup.py install

If you don’t have this already, create a local repo for rabbitmq-codegen:

hedelson$ git clone git://github.com/rabbitmq/rabbitmq-codegen.git
hedelson$ cd rabbitmq-codegen

To set up a fresh RabbitMQ java client repo from github and build from source (read only. From a fork is a bit different)

hedelson$ git clone git://github.com/rabbitmq/rabbitmq-java-client.git
hedelson$ cd /path/to/rabbitmq-java-client
hedelson$ ant dist

Share/Save

Leave a Reply