本文介绍了如何安装特定版本的Erlang / OTP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个带有人偶/流浪汉/虚拟盒子设置的项目。无家可归的规定打破了我围绕rabbitmq-server的错误。

I have inherited a project with a puppet/vagrant/Virtual box setup. The vagrant provision is breaking around my erlangs surrounding rabbitmq-server.

错误:

==> default: err: /Stage[main]/Rabbitmq::Install/Package[rabbitmq-server]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-server' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Some packages could not be installed. This may mean that you have
==> default: requested an impossible situation or if you are using the unstable
==> default: distribution that some required packages have not yet been created
==> default: or been moved out of Incoming.
==> default: The following information may help to resolve the situation:
==> default:
==> default: The following packages have unmet dependencies:
==> default:  rabbitmq-server : Depends: erlang-nox (>= 1:16.b.3) but it is not going to be installed or
==> default:                             esl-erlang but it is not installable
==> default:                    Depends: init-system-helpers (>= 1.13~) but it is not installable
==> default: E: Unable to correct problems, you have held broken packages.

我已经完成了 http://www.scotthelm列出的步骤。 com / 2013/11/27 / rabbit-mq-and-erlang-and-ubuntu-oh-my.html 。我安装了erlang和erlagn-nox,但是当我运行 erl 时,当我想要Rabbitmq可以很好地运行的r16时,我的版本显示为R14B04。如何安装特定版本的erlang?

I have gone through the steps listed http://www.scotthelm.com/2013/11/27/rabbit-mq-and-erlang-and-ubuntu-oh-my.html. I installed erlang and erlagn-nox, but when i run erl my version shows as R14B04 when i want the r16 that rabbitmq plays well with. How do I install a specific version of erlang?

当前我已经尝试过 sudo apt-get install erlang = 1:16.b.3- dfsg-1ubuntu2 ,但找不到。尝试了几种变体但没有运气。我的另一个想法是下载tar本身并进行构建,但这似乎过多了,而且似乎缺少了一些显而易见的东西。

Currently I have tried sudo apt-get install erlang=1:16.b.3-dfsg-1ubuntu2 but it can't be found. Have tried several variations but no luck. My other idea is to download the tar itself and build it, but this seems excessive and it seems like I am missing something more obvious.

推荐答案

您可以使用Erlang解决方案存储库:

you cau use Erlang-Solutions repositories:

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang=1:19.3.6

这篇关于如何安装特定版本的Erlang / OTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 17:29