Skip to content

Instantly share code, notes, and snippets.

@nickl-
Forked from hdiedrich/install-r15b01.sh
Last active January 4, 2016 14:50
Show Gist options
  • Save nickl-/8637211 to your computer and use it in GitHub Desktop.
Save nickl-/8637211 to your computer and use it in GitHub Desktop.
#!/bin/bash
# You will need to make this file executable (chmod +x) and run it with sudo
# Optionally supply the version number you want to build
[[ $1 ]] && VERSION=$1 || VERSION=R16B03-1
apt-get update
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
wget -c http://www.erlang.org/download/otp_src_${VERSION}.tar.gz
tar zxvf otp_src_${VERSION}.tar.gz
cd otp_src_${VERSION}
./configure
make
make install
@nickl-
Copy link
Author

nickl- commented Jan 26, 2014

Just some minor tweaks and improvements:

  • use variable $VERSION for the version number
  • optionally pass version to script i.e $ sudo ./install-erlang-ubuntu-precise.sh R16B04
  • resume file download or skip download if already complete
  • removed recursive mode 777

nJoy!

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