如何安装esl-erlang,erlang-crypto和erlang-tools?

时间:2017-07-15 05:36:49

标签: ubuntu erlang elixir

我在Ubuntu 16.04上。我像这样安装了Elixir

function :crypto.mpint/1 is undefined or private

当我运行测试时,我得到了

sudo apt-get install erlang-crypto

所以我像这样安装了erlang-crypto

no case clause matching: {:error, {:undef, [{:cover, :is_compiled, [:hackney], []}

然后我运行了测试并获得了

sudo apt-get install erlang-tools

所以我安装了像这样的erlang-tools

function :crypto.mpint/1 is undefined or private

但现在我又得到了这个错误!

The following additional packages will be installed:
  erlang-asn1 erlang-base erlang-inets erlang-mnesia erlang-public-key erlang-runtime-tools erlang-ssl erlang-syntax-tools
Suggested packages:
  erlang erlang-manpages erlang-doc erlang-tools
The following packages will be REMOVED:
  esl-erlang
The following NEW packages will be installed:
  erlang-asn1 erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-public-key erlang-runtime-tools erlang-ssl erlang-syntax-tools

我的猜测是这些命令在esl-erlang和常规erlang之间翻转,但我不确定。

可疑线是当我安装erlang-crypto时,它说会删除esl-erlang并安装erlang-base!

{{1}}

如何一次性使用esl-erlang,erlang-crypto和erlang-tools?

1 个答案:

答案 0 :(得分:2)

我能够使用asdf来解决我的问题。我安装了asdf并运行了以下命令

asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
sudo apt-get install automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev
asdf install erlang 19.3
asdf install elixir 1.3.4
asdf global erlang 19.3
asdf global elixir 1.3.4
rm -rf _build/
rm -rf deps/
mix deps.get
mix test