Skip to content

Instantly share code, notes, and snippets.

@lambrospetrou
Last active January 25, 2018 10:58
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 lambrospetrou/b013d4353de02a61296009e2b9181fde to your computer and use it in GitHub Desktop.
Save lambrospetrou/b013d4353de02a61296009e2b9181fde to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
INSTALL_DIR="$HOME/local"
# erlang FROM SOURCE - http://erlang.org/doc/installation_guide/INSTALL.html
# You need to have OpenSSL for :crypto, wxWidgets for :wx, etc.
#ERL_VERSION="20.2"
#wget "http://www.erlang.org/download/otp_src_$ERL_VERSION.tar.gz"
#tar -xzvf "otp_src_$ERL_VERSION.tar.gz"
#cd "otp_src_$ERL_VERSION/"
# Change the following if you want to install in different directory
#./configure --prefix="$INSTALL_DIR/erlang/$ERL_VERSION"
#make
#sudo make install
#cd ..
#rm "otp_src_$ERL_VERSION.tar.gz"
#sudo rm -R "otp_src_$ERL_VERSION/"
# erlang FROM erlang-solutions - https://www.erlang-solutions.com/resources/download.html
ERL_DEB="esl-erlang_20.2.2-1~ubuntu~trusty_amd64.deb"
wget "https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/$ERL_DEB"
sudo dpkg -i "$ERL_DEB"
sudo apt-get install -f # to install any missing dependencies
rm "$ERL_DEB"
# elixir
IEX_VERSION="1.6.0"
# Change this to install Elixir in different directory!
cd "$INSTALL_DIR"
rm -rf elixir && mkdir -p elixir
cd elixir
wget "https://github.com/elixir-lang/elixir/releases/download/v$IEX_VERSION/Precompiled.zip"
unzip Precompiled.zip
rm Precompiled.zip
# PATH
echo "Add to PATH: $HOME/local/elixir/bin:$HOME/local/erlang/$ERL_VERSION/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment