I’ve been reading quite a bit about rabbitMQ lately and decided to load it onto one of my CentOS sandbox VM’s, “yum install rabbitmq-server” easy right? Not so fast. RabbitMQ requires that Erlang also be installed.
Ok, so let’s install Erlang. First we’ll need to make a quick visit to the erlang site and download the source code: http://www.erlang.org/download.html. After that we’ll need to build erlang from the source.
[root@centos rabbitmq]# tar xzvfp otp_src_R15B01.tar.gz [root@centos rabbitmq]# cd otp_src_R15B01 [root@centos rabbitmq]# ./configure [root@centos rabbitmq]# make [root@centos rabbitmq]# make install
Next, let’s head on over to RabbitHQ and download the server rpm.
[root@centos ~]# yum install rabbitmq-server-2.8.5-1.noarch.rpm Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.usc.edu * extras: mirrors.usc.edu * rpmforge: mirror.hmc.edu * updates: mirrors.usc.edu Setting up Install Process Examining rabbitmq-server-2.8.5-1.noarch.rpm: rabbitmq-server-2.8.5-1.noarch Marking rabbitmq-server-2.8.5-1.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package rabbitmq-server.noarch 0:2.8.5-1 will be installed --> Processing Dependency: erlang >= R12B-3 for package: rabbitmq-server-2.8.5-1.noarch --> Finished Dependency Resolution Error: Package: rabbitmq-server-2.8.5-1.noarch (/rabbitmq-server-2.8.5-1.noarch) Requires: erlang >= R12B-3 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@centos ~]# mv rabbitmq_server-2.8.5/ /usr/local/s
Woops, this doesn’t look good. We compiled Erlang from the source, so let’s skip the dependency check and try the installation again.
[root@centos ~]# rpm --nodeps -Uvh rabbitmq-server-2.8.5-1.noarch.rpm
Success! Let’s start the rabbitmq-server!
[root@centos sbin]# service rabbitmq-server start ... BOOT FAILED =========== Error description: {could_not_start_tcp_listener,{"::",5672}}
Hmm.. once again stifled. It appears that Centos 6 ships with Apache QPID (used by Matahari) which is attached to 5672 already! Let’s get rid of this nonsense.
[root@centos rabbitmq]# rpm -e matahari [root@centos rabbitmq]# rpm -e matahari-broker [root@centos rabbitmq]# rpm -e qpid-cpp-server-ssl [root@centos rabbitmq]# rpm -e qpid-cpp-server
Time to try and restart the rabbitmq server again:
[root@centos rabbitmq]# service rabbitmq-server start Starting rabbitmq-server: SUCCESS rabbitmq-server.
Profit!
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.