DEV Community

drew
drew

Posted on • Edited on

TIL: How to build Elixir From Source and install Livebook

EDIT: Must have erlang installed for this to work. on garuda arch, type sudo pacman -S erlang.

Short and sweet:

$ git clone https://github.com/elixir-lang/elixir.git --branch v1.14.2 $ cd elixir $ make $ export PATH="$PWD/bin:$PATH" $ elixir --version 
Enter fullscreen mode Exit fullscreen mode

After that I had to add escripts to path. I'm on Garuda Linux, so this was what I used:

set PATH /home/drew/.mix/escripts $PATH 
Enter fullscreen mode Exit fullscreen mode

To make it permanent run:

fish_add_path /home/drew/.mix/escripts 
Enter fullscreen mode Exit fullscreen mode

After that, run:

mix escript.install hex livebook 
Enter fullscreen mode Exit fullscreen mode

And that's it.

Top comments (0)