Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save z5ottu/beec8354d5a36bd6ac4a8b749edffc47 to your computer and use it in GitHub Desktop.
Save z5ottu/beec8354d5a36bd6ac4a8b749edffc47 to your computer and use it in GitHub Desktop.
Running elixir 1.8.1 on amazon linux

Script

set your locale:

add these lines to /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8
#!/bin/bash

yum install ncurses-devel openssl-devel -y
yum groupinstall "Development Tools" -y

cd /tmp
wget "http://erlang.org/download/otp_src_21.3.tar.gz" -O otp21.tar.gz
tar xfz otp21.tar.gz
cd /tmp/otp_src_21.3/
./configure
make && make install

cd /tmp
wget "https://github.com/elixir-lang/elixir/archive/v1.10.2.tar.gz"
tar xfz v1.10.2.tar.gz
cd /tmp/elixir-1.10.2/
export PATH="${PATH}:/usr/local/bin"
make && make install

mix local.hex --force
mix local.rebar --force

Step-by-step Process

set your locale:

add these lines to /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

pre-install

yum install ncurses-devel openssl-devel

install erlang

wget "http://erlang.org/download/otp_src_21.3.tar.gz" -O otp21.tar.gz
tar xfz otp21.tar.gz
cd /tmp/otp_src_21.3/
./configure
make && make install

install elixir

cd ..
wget "https://github.com/elixir-lang/elixir/archive/v1.10.2.tar.gz"
tar xfz v1.10.2.tar.gz
cd /tmp/elixir-1.10.2/
export PATH="${PATH}:/usr/local/bin"
make && make install

install deps

mix local.hex --force
mix local.rebar --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment