-
-
Save taomaree/d21ca1c33a1dd5e85377 to your computer and use it in GitHub Desktop.
This file contains 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 down, make it executable and run it with sudo | |
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
# chmod u+x build-erlang-17.0.sh | |
# sudo ./build-erlang-17.0.sh | |
ver=18.0 | |
#if [ $(id -u) != "0" ]; then | |
#echo "You must be the superuser to run this script" >&2 | |
#exit 1 | |
#fi | |
sudo apt-get update | |
sudo apt-get -y install aria2 build-essential autoconf libncurses5-dev libwxgtk2.8-dev \ | |
libgl1-mesa-dev libglu1-mesa-dev libpng3 libssh-dev unixodbc-dev fop | |
sudo yum install -y aria2 autoconf ncurses-libs ncurses-devel libpng-devel libssh-devel \ | |
wxGTK-devel mesa-libGLU-devel unixODBC-devel fop | |
# for babun on windows | |
pact install aria2 | |
mkdir -p ~/code/erlang | |
cd ~/code/erlang | |
if [ -e otp_src_${ver}.tar.gz ]; then | |
echo "Good! 'otp_src_${ver}.tar.gz' already exists. Skipping download." | |
else | |
#aria2c --continue=true http://www.erlang.org/download/otp_src_${ver}.tar.gz | |
wget http://res.shiboapp.com/pub/otp_src_${ver}.tar.gz | |
fi | |
tar -xvzf otp_src_${ver}.tar.gz | |
cd otp_src_${ver} | |
./configure | |
make | |
sudo make install | |
## install elixir | |
cd ~/code | |
#git clone https://github.com/elixir-lang/elixir.git | |
#cd elixir | |
#git checkout v1.0.5 | |
tgzname=elixir-1.0.5 | |
if [ -e ${tgzname}.tar.gz ]; then | |
echo "Good! ${tgzname}.tar.gz already exists. Skipping download." | |
else | |
wget http://res.shiboapp.com/pub/${tgzname}.tar.gz | |
tar zxfv ${tgzname}.tar.gz | |
cd ${tgzname} | |
fi | |
make && sudo make install | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment