Skip to content

Instantly share code, notes, and snippets.

@xandkar
Forked from bryanhunter/build-erlang-r15b.sh
Created July 13, 2012 21:37
Show Gist options
  • Save xandkar/3107680 to your computer and use it in GitHub Desktop.
Save xandkar/3107680 to your computer and use it in GitHub Desktop.
Build Erlang R15B on a fresh Ubuntu box (tested on Ubuntu 11.10)
#!/bin/bash
# Pull this file dowm, make it executable and run it with sudo
# wget https://raw.github.com/gist/1603037/build-erlang-r15b.sh
# chmod u+x build-erlang-r15b.sh
# sudo ./build-erlang-r15b.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 default-jdk
mkdir -p /src/erlang
cd /src/erlang
if [ -e otp_src_R15B.tar.gz ]; then
echo "Good! 'otp_src_R15B.tar.gz' already exists. Skipping download."
else
wget http://www.erlang.org/download/otp_src_R15B.tar.gz
fi
tar -xvzf otp_src_R15B.tar.gz
chmod -R 777 otp_src_R15B
cd otp_src_R15B
./configure
make
make install
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment