Skip to content

Instantly share code, notes, and snippets.

@ulve
Last active February 1, 2021 19:21
Show Gist options
  • Save ulve/b3f3ed536b6b8864006d to your computer and use it in GitHub Desktop.
Save ulve/b3f3ed536b6b8864006d to your computer and use it in GitHub Desktop.
Install Erlang/Elixir/Phoenix on a Raspberry Pi
#!/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
@ulve
Copy link
Author

ulve commented Feb 2, 2016

Info

Works on a standard raspbian image on a 8 gb sdcard.

Note

  • No node
  • Remember to raspi-config and resize the partition before doing this.

Next step

  • configure postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment