Vik

Vik

Error when checking elixir version

Hi Im installing Elixir in elementary os,

when I try to install erlang with
sudo apt-get install esl-erlang

The esl-erlang package is not available, but some other package references
to the. This may mean that the package is missing, outdated, or only
is available from some other source

E: The “esl-erlang” package does not have a candidate for installation

and if I try to install elixir and then check version, this happens

Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]

{“init terminating in do_boot”,{{badmatch,error},[{‘Elixir.System’,build,0,[{file,“lib/system.ex”},{line,172}]},{‘Elixir.System’,build_info,0,[{file,“lib/system.ex”},{line,164}]},{‘Elixir.Kernel.CLI’,parse_shared,2,[{file,“lib/kernel/cli.ex”},{line,153}]},{‘Elixir.Kernel.CLI’,‘shared_option?’,3,[{file,“lib/kernel/cli.ex”},{line,113}]},{‘Elixir.Kernel.CLI’,main,1,[{file,“lib/kernel/cli.ex”},{line,14}]},{init,start_em,1,},{init,do_boot,3,}]}}
init terminating in do_boot ({{badmatch,error},[{Elixir.System,build,0,[{},{}]},{Elixir.System,build_info,0,[{},{}]},{Elixir.Kernel.CLI,parse_shared,2,[{},{}]},{Elixir.Kernel.CLI,shared_option?,

Can anybody help me , please?

Most Liked

l00ker

l00ker

You’d be much better off using asdf to install both erlang & elixir. That way you can have multiple versions installed and switch between them etc.

Just be sure to check and install any required system packages. The requirements and instructions are listed on the repo of each plugin. Just follow the link to the repo in the plugins list.

Since Elementary OS seems to be using apt, it’s probably based on Debian, so you can most likely follow the instructions under Before asdf install for Ubuntu and Debian in the asdf-erlang repo.

NobbZ

NobbZ

You need to also activate the freshly installed elixir either in a project, in a shell or globally.

Please refer to the documentation of asdf local and asdf global for the most common use cases.

dimitarvp

dimitarvp

Yes, compiling Erlang from C sources can take a while. Don’t worry about it unless it’s still hung 6h later.

Last Post!

Vik

Vik

Thanks, I set the global versión and now works, thank you

Where Next?

Popular in Questions Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40082 209
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

We're in Beta

About us Mission Statement