Skip to content

Instantly share code, notes, and snippets.

@techgaun
Last active May 19, 2019 06:36
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 techgaun/2792bee5e42840c65f2ff36cfd436f03 to your computer and use it in GitHub Desktop.
Save techgaun/2792bee5e42840c65f2ff36cfd436f03 to your computer and use it in GitHub Desktop.
Install Erlang 19.2 and Elixir 1.3 on Raspberry Pi

This has been tested on Raspbian

Install Erlang 19.2

apt-get install -y libssl-dev ncurses-dev
wget http://www.erlang.org/download/otp_src_19.2.tar.gz
wget -q -O - https://raw.githubusercontent.com/techgaun/extract/master/extract >> ~/.bashrc # I already had [this](https://github.com/techgaun/extract)
extract otp_src_19.2.tar.gz
cd otp_src_19.2
./configure
make
make install

Install Elixir 1.4.0

cd /opt
wget "https://github.com/elixir-lang/elixir/releases/download/v1.4.0/Precompiled.zip"
mkdir elixir && mv Precompiled.zip elixir/ && cd elixir
extract Precompiled.zip
echo "export PATH=\$PATH:/opt/elixir/bin" > /etc/profile.d/elixir.sh
chmod +x /etc/profile.d/elixir.sh
source /etc/profile.d/elixir.sh

# or add to ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment