Last active
May 20, 2017 11:29
-
-
Save bryanhunter/4361444 to your computer and use it in GitHub Desktop.
Builds Erlang R15B03 from source on the Raspberry Pi. Tested on the 2012-12-16 build of Raspbian (Wheezy)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pull this file dowm, make it executable and run it with sudo | |
# wget https://gist.github.com/raw/4361444/r15b03-on-raspbian1212.sh | |
# chmod u+x r15b03-on-raspbian1212.sh | |
# sudo ./r15b03-on-raspbian1212.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 1 | |
fi | |
apt-get update | |
# Install the build tools (dpkg-dev g++ gcc libc6-dev make) | |
apt-get -y install build-essential | |
# automatic configure script builder (debianutils, m4 [for HiPE], perl) | |
apt-get -y install autoconf | |
# Needed for terminal handling (libc-dev libncurses5 libtinfo-dev libtinfo5 ncurses-bin) | |
apt-get -y install libncurses5-dev | |
# For building ssl (libssh-4 libssl-dev zlib1g-dev) | |
apt-get -y install libssh-dev | |
# ODBC support (libltdl3-dev odbcinst1debian2 unixodbc) | |
apt-get -y install unixodbc-dev | |
mkdir -p ~/code/erlang | |
cd ~/code/erlang | |
if [ -e otp_src_R15B03.tar.gz ]; then | |
echo "Good! 'otp_src_R15B03.tar.gz' already exists. Skipping download." | |
else | |
wget http://www.erlang.org/download/otp_src_R15B03.tar.gz | |
fi | |
tar -xvzf otp_src_R15B03.tar.gz | |
chmod -R 777 otp_src_R15B03 | |
cd otp_src_R15B03 | |
./configure | |
touch lib/wx/SKIP | |
make | |
make install | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment