Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Erlang R15B03
# Setup languages
echo "\n\nSetting language...\n"
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
# Update
echo "\n\nUpdating apt-get...\n"
sudo apt-get update
sudo apt-get -y install build-essential
# git
echo "\n\nInstalling git...\n"
sudo apt-get -y install git
# dependencies
echo "\n\nexpat...\n"
sudo apt-get -y install expat
echo "\n\nlibexpat-dev...\n"
sudo apt-get install -y libexpat-dev
echo "\n\nautomake...\n"
sudo apt-get -y install automake
echo "\n\ndefault-jre...\n"
sudo apt-get -y install default-jre
echo "\n\nlibtool...\n"
sudo apt-get -y install libtool
echo "\n\nlibxml2...\n"
sudo apt-get -y install libxml2
echo "\n\nlibncurses5-dev...\n"
sudo apt-get -y install libncurses5-dev
echo "\n\nfop...\n"
sudo apt-get -y install fop
echo "\n\nopenjdk-6-jdk...\n"
sudo apt-get -y install openjdk-6-jdk
echo "\n\nlibssl-dev...\n"
sudo apt-get -y install libssl-dev
echo "\n\nunixodbc-dev...\n"
sudo apt-get -y install unixodbc-dev
echo "\n\ng++...\n"
sudo apt-get -y install g++
# Erlang
echo "\n\nFetching Erlang source...\n"
cd
mkdir setups
cd setups
erlang_version="R15B03"
erlang_download_url="http://www.erlang.org/download/otp_src_$erlang_version.tar.gz"
curl -O $erlang_download_url
tar -xvzf otp_src_R15B03.tar.gz
cd otp_src_R15B03
touch lib/wx/SKIP lib/gs/SKIP
echo "\n\nConfguring erlang setup...\n"
./configure --disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --with-openssl=/usr/bin/openssl
echo "\n\nMake!!!"
make
echo "\n\nInstalling erlang...\n"
sudo make install
cd
# Rebar
echo "\n\nInstalling rebar...\n"
sudo apt-get -y install rebar
echo "\n\Yippee!\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment