Skip to content

Instantly share code, notes, and snippets.

@lucasw
Last active January 1, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasw/7964f49d8874f98bb414f7c4f9eef3ee to your computer and use it in GitHub Desktop.
Save lucasw/7964f49d8874f98bb414f7c4f9eef3ee to your computer and use it in GitHub Desktop.
elixir

Try ubuntu install using only standard repos at first.

@lucasw
Copy link
Author

lucasw commented Jan 1, 2020

Ubuntu 18.04 standard repos install - doesn't work

sudo apt install elixir
git clone https://github.com/elixir-lang/vim-elixir.git ~/.vim/pack/my-packages/start/vim-elixir
elixir --version
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8: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?,

Crash dump is being written to: erl_crash.dump...done
 mix new . --sup --app "test"
** (Mix) Application name must start with a letter and have only lowercase letters, numbers and underscore, got: "test"

mix --help
** (Mix) The task "deps.loadpaths" could not be found
mix --version
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:false]

** (MatchError) no match of right hand side value: :error
    (elixir) lib/system.ex:172: System.build/0
    (elixir) lib/system.ex:164: System.build_info/0
    (mix) lib/mix/cli.ex:118: Mix.CLI.display_version/0
    (elixir) lib/code.ex:363: Code.require_file/2

Elixir from ubuntu repos looks really out of date:

 dpkg -l | grep elixir
ii  elixir                                     1.3.3-2                                         all          functional meta-programming aware language

So have to get it through other means.

@lucasw
Copy link
Author

lucasw commented Jan 1, 2020

Maybe try instructions here https://elixir-lang.org/install.html instead.

Docker

sudo apt install docker.io
docker run -it --rm elixir bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment