max
max

Reputation: 10464

Installing rabbitmq on centos7

I am trying to install rabbotmq on centos7. Following the official instructions, I ran:

sudo yum install rabbitmq-server-3.5.1-1.noarch.rpm

and I get this error:

Loaded plugins: fastestmirror
Examining rabbitmq-server-3.5.1-1.noarch.rpm: rabbitmq-server-3.5.1-1.noarch
Marking rabbitmq-server-3.5.1-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.5.1-1 will be installed
--> Processing Dependency: erlang >= R13B-03 for package: rabbitmq-server-3.5.1-1.noarch
http://repos.fedorapeople.org/repos/peter/erlang/epel-7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.hoobly.com
 * extras: linux.mirrors.es.net
 * updates: mirror.pac-12.org
--> Finished Dependency Resolution
Error: Package: rabbitmq-server-3.5.1-1.noarch (/rabbitmq-server-3.5.1-1.noarch)
           Requires: erlang >= R13B-03
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

then I tried installing erlang with the instructions from: Installing rabbitmq-server on RHEL

It seemed to have been installed, but my rabbitmq installation still fails with the same message. Any ideas how to fix the problem?

Upvotes: 4

Views: 7125

Answers (4)

Lina Bousbih
Lina Bousbih

Reputation: 1

you have to install Earlang first, this has worked for me :

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
sudo yum clean all
sudo yum makecache
sudo yum install erlang -y
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
sudo yum install rabbitmq-server -y
rpm -qi rabbitmq-server
systemctl start rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl status rabbitmq-server

Upvotes: 0

ThangTD
ThangTD

Reputation: 1684

Following the instruction lead me to error: No package rabbitmq-server-3.6.1-1.noarch.rpm available.

Then I simply tried: yum install rabbitmq-server, it works for me.

Or checkout this one: Rabbitmq at Digitalocean - I used to config web monitoring on my server.

Upvotes: 8

shooding
shooding

Reputation: 148

Here is the ansible playbook i used to install rabbitmq on CentOS 7.

- name: install epel-release
  yum: name=epel-release state=latest
  tags: erlang

- name: install erlang from EPEL
  yum: name=erlang state=latest
  tags: erlang

- name: install new rabbitmq
  yum: name=https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm state=present

Upvotes: 0

Chris Heald
Chris Heald

Reputation: 62668

This is something that I've fought with, and found that the best solution is to install Erlang and RabbitMQ from standalone RPMs outside of yum; see Install Erlang in RMQ's documentation. Specifically, the stripped-down Erlang install provided by RabbitMQ (see here) should install easily, then allow you to install RMQ from an RPM downloaded from the RabbitMQ site. If that package doesn't work, then try the Erlang distributions from Erlang Solutions.

Upvotes: 5

Related Questions