代码之家  ›  专栏  ›  技术社区  ›  Jesse Shieh José Valim

如何安装esl erlang、erlang crypto和erlang工具?

  •  6
  • Jesse Shieh José Valim  · 技术社区  · 7 年前

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

    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
    sudo apt-get install elixir
    

    function :crypto.mpint/1 is undefined or private
    

    sudo apt-get install erlang-crypto
    

    然后我进行了测试,得到了

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

    sudo apt-get install erlang-tools
    

    功能:加密。mpint/1未定义或私有
    

    可疑的一行是当我安装erlang crypto时,它说它将删除esl erlang并安装erlang base!

    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 crypto和erlang工具?

    1 回复  |  直到 7 年前
        1
  •  3
  •   Jesse Shieh José Valim    7 年前

    我可以通过使用 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