-
Notifications
You must be signed in to change notification settings - Fork 64
Installation on Leopard
Homebrew comes with the required packages for Erlang and RabbitMQ:
brew install erlang
brew install rabbitmq
Then add the directory of newly installed rabbitmq erlang modules to your environment’s $ERL_LIBS variable. For a standard Homebrew installation and a bash terminal this would be:
export ERL_LIBS='/usr/local/Cellar/rabbitmq/2.0.0/lib/rabbitmq/erlang/lib:$ERL_LIBS'
in your .bash_profile or .bash_login file.
Then start RabbitMQ using sudo rabbitmq-server -detached
MacPorts also has both packages at the ready:
port install rabbitmq
Then wait for a couple of minutes. Be prepared to see a lot of dependencies being installed, since the Erlang port depends on tk which in turn will cause a lot of x.org libraries to be installed.
Then you can go ahead and install the gems from Gemcutter:
gem install nanite
This will install all the dependencies like EventMachine and AMQP.
mkdir ~/nanite_and_friends wget http://www.erlang.org/download/otp_src_R12B-5.tar.gz tar -zxvf otp_src_R12B-5.tar.gz cd otp_src_R12B-5 ./configure --enable-hipe --enable-darwin-universal make && sudo make install
cd ~/nanite_and_friends wget http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.6.tar.gz tar -xzvf simplejson-2.0.6.tar.gz cd simplejson-2.0.6 python setup.py install
cd ~/nanite_and_friends wget http://www.rabbitmq.com/releases/rabbitmq-server/v1.5.0/rabbitmq-server-1.5.0.tar.gz tar -zxvf rabbitmq-server-1.5.0.tar.gz cd /usr/local/lib/erlang/lib sudo ln -s ~/nanite_and_friends/rabbitmq-server-1.5.0 ./rabbitmq-server-1.5.0 export PATH=~/nanite_and_friends/rabbitmq-server-1.5.0/scripts:$PATH cd ~/nanite_and_friends/rabbitmq-server-1.5.0 sudo make run ... ctrl-c (after all the excitement stops)
sudo gem install eventmachine
cd ~/nanite_and_friends git clone git://github.com/tmm1/amqp.git cd amqp rake gem sudo gem install amqp-<VERSION>.gem
cd ~/nanite_and_friends git clone git://github.com/ezmobius/nanite.git cd nanite export PATH=~/nanite_and_friends/nanite/bin:$PATH rabbitconf ... ...done.
Test if it works: Testing Nanite