Want to install RabbitMQ on RHEL5 but running into hideous erlang crashes? Chances are it is an issue with dual installations of erlang, one i386 and one x86_64.
Here’s how to fix it:
$ yum erase erlang.i386 $ rm /usr/bin/erl $ rm /usr/bin/erlc $ rm /usr/bin/escript $ ln -s /usr/lib64/erlang/bin/erl /usr/bin/erl $ ln -s /usr/lib64/erlang/bin/erlc /usr/bin/erlc $ ln -s /usr/lib64/erlang/bin/escript /usr/bin/escript $ service start rabbitmq-server > Starting rabbitmq-server: SUCCESS
Let’s test:
bash-3.2$ irb >> require 'bunny' => true >> b = Bunny.new => #<:client:0x2b04beb0b038> >> b.start => :connected >> exec "echo YOU WIN" YOU WIN bash-3.2$
And as always, remember:
chkconfig rabbitmq-server on
I’m paranoid about chkconfig now!