-
-
Save orderthruchaos/32a40a2baf923d465a53 to your computer and use it in GitHub Desktop.
Install Erlang/Elixir/Phoenix on a Raspberry Pi
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 | |
sudo apt-get update | |
sudo apt-get --assume-yes install wget | |
sudo apt-get --assume-yes install libssl-dev | |
sudo apt-get --assume-yes install ncurses-dev | |
sudo apt-get --assume-yes install m4 | |
# erlang | |
wget http://erlang.org/download/otp_src_18.2.tar.gz | |
tar -xvzf otp_src_18.2.tar.gz | |
cd otp_src_18.2 | |
./configure | |
make -j4 | |
sudo make install | |
cd .. | |
rm -fr otp_src_18.2 | |
rm otp_src_18.2.tar.gz | |
# elixir | |
cd ~ | |
mkdir elixir | |
cd elixir | |
wget https://github.com/elixir-lang/elixir/releases/download/v1.2.2/Precompiled.zip | |
unzip Precompiled.zip | |
rm Precompiled.zip | |
export PATH=$PATH:~/elixir/bin | |
# node | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install nodejs | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
# phoenix | |
sudo apt-get --assume-yes install inotify-tools | |
mix local.hex | |
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez | |
# postgres | |
sudo apt-get --assume-yes install postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment