Skip to content

Instantly share code, notes, and snippets.

@bryanhunter
Created July 23, 2012 05:00
Show Gist options
  • Select an option

  • Save bryanhunter/3162027 to your computer and use it in GitHub Desktop.

Select an option

Save bryanhunter/3162027 to your computer and use it in GitHub Desktop.
Build Erlang R15B01 (tested on a fresh Ubuntu 12.04 box)
#!/bin/bash
# Pull this file dowm, make it executable and run it with sudo
# wget https://raw.github.com/gist/3162027/build-erlang-r15b01.sh
# chmod u+x build-erlang-r15b01.sh
# sudo ./build-erlang-r15b01.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
apt-get update
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc
mkdir -p /src/erlang
cd /src/erlang
if [ -e otp_src_R15B01.tar.gz ]; then
echo "Good! 'otp_src_R15B01.tar.gz' already exists. Skipping download."
else
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
fi
tar -xvzf otp_src_R15B01.tar.gz
chmod -R 777 otp_src_R15B01
cd otp_src_R15B01
./configure
make
make install
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment