用于 Rabbitmq 的 Erlang

用于 Rabbitmq 的 Erlang

尝试将 Rabbitmq 安装到 AWS Ubuntu 18.04。首先我需要安装 Erlang:

wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
sudo apt update
sudo apt -y install erlang

已安装 Erlang 版本 22。

现在安装 Rabbitmq:

echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

这使得下面的行变为/etc/apt/sources.list.d/rabbitmq.listdeb https://dl.bintray.com/rabbitmq/debian bionic main

sudo apt update
sudo apt -y install rabbitmq-server

这会带来错误:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 rabbitmq-server : Depends: erlang-nox (>= 1:13.b.3) but it is not going to be installed or
                            esl-erlang but it is not installable
E: Unable to correct problems, you have held broken packages.

Erlang 有什么问题?根据描述,Erlang 22 应该支持 Rabbitmq 3.8。

如何修复?

答案1

请参阅此要点,了解在 Ubuntu 上安装 Erlang 和 RabbitMQ 的一系列命令:

https://gist.github.com/lukebakken/bd90852537928b4f8801bae9aa051bf0

更改xenial为您的版本。


笔记:RabbitMQ 团队监控rabbitmq-users 邮件列表并且仅有时回答 StackOverflow 上的问题。

相关内容