尝试在RHEL上安装rabbitmq-server时:
[ec2-user@ip-172-31-34-1XX ~]$ sudo rpm -i rabbitmq-server-3.3.5-1.noarch.rpm
error: Failed dependencies:
erlang >= R13B-03 is needed by rabbitmq-server-3.3.5-1.noarch
[ec2-user@ip-172-31-34-1XX ~]$ rpm -i rabbitmq-server-3.3.5-1.noarch.rpm
error: Failed dependencies:
erlang >= R13B-03 is needed by rabbitmq-server-3.3.5-1.noarch
我不确定为什么尝试rpm安装无法识别我的erlang安装,因为运行$ erl
会给出:
[ec2-user@ip-172-31-34-1XX ~]$ which erl
/usr/local/bin/erl
[ec2-user@ip-172-31-34-1XX ~]$ sudo which erl
/bin/erl
答案 0 :(得分:5)
答案 1 :(得分:5)
您需要确保安装了最新版本的Erlang。它可以在EPEL存储库中找到。
您可以通过执行以下操作来安装它:
wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
yum install erlang
按照上面的Erlang设置,您可以按照以下步骤继续安装RabbitMQ:
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server-3.3.5-1.noarch.rpm
您可以在setup guide
中找到更多信息