2015-05-11 118 views
1

我想在centos7上安裝rabbotmq。 繼官方說明,我跑:在centos7上安裝rabbitmq

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

,我得到這個錯誤:

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 

然後我試圖從說明書安裝二郎: Installing rabbitmq-server on RHEL

它似乎一直已安裝,但我的rabbitmq安裝仍然失敗,並顯示相同的消息。 任何想法如何解決這個問題?

回答

4

這是我與之奮鬥的事情,並且發現最好的解決方案是從yum之外的獨立RPM安裝Erlang和RabbitMQ;請參閱RMQ文檔中的Install Erlang。具體來說,RabbitMQ提供的精簡Erlang安裝(請參閱here)應該很容易安裝,然後允許您從RabbitMQ站點下載的RPM安裝RMQ。如果該軟件包不起作用,請嘗試使用Erlang Solutions的Erlang分發版。

+0

YES安裝的RabbitMQ。謝謝。我不得不安裝他們的erlang版本。 – max

0

這裏是ansible劇本我曾經在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 
相關問題