#Erlang is failing to install

13 messages · Page 1 of 1 (latest)

zinc bridge
#

Heya, off to a super rocky start with Elixir. All day I've been trying to install EX and Erl for Phoenix, and have been failing.
I have gotten Elixir installed to a point where it works, at least. Erlang has been much more difficult though.

  • Tried using Erl from apt and the software manager, but it crashes when I run any command.
  • Tried Kerl, it can download the builds, but fails to install it.
  • Tried asdf, it can't find Erlang.
    Haven't tried compiling from source, but it looks complicated and obnoxious. Is there a better way to install Erlang?
#

Erlang is failing to install

void sigil
#

Typically the recommended way is to use asdf. you said it cant find erlang, did you install the plugin and deps through asdf?

zinc bridge
#

I tried to install the plugin, it said it didn't exist

void sigil
#

did you add the plugin first though?

#

With asdf before you install stuff you need to add the plugin, and then install

zinc bridge
#

Well I can't do anything without the plugin

void sigil
#

The readme has what you need to do

zinc bridge
#

Ah I see, I didn't add the erlang URL to the plugin command

#

Okay it says it's installed now, but elixir -v shows this:

No version is set for command erl
Consider adding one of the following versions in your config file at 
erlang 26.2.1
```What do I do for this?
#

Ah nevermind, missed a step.
Completely works now! Thanks for your assistance.

subtle yew
#
  1. remove all elixir and erlang installed through apt or kerl
  2. follow the official asdf installation instructions here: https://asdf-vm.com/guide/getting-started.html
  3. asdf plugin-add erlang
  4. asdf install erlang 26.2.1
  5. asdf plugin-add elixir
  6. asdf install elixir 1.16.1-otp26