Skip to content

Instantly share code, notes, and snippets.

@tony612
Last active December 1, 2018 17:58
Show Gist options
  • Save tony612/ce9b77e06c41283ec4b0501ed7bb06b8 to your computer and use it in GitHub Desktop.
Save tony612/ce9b77e06c41283ec4b0501ed7bb06b8 to your computer and use it in GitHub Desktop.
Install Elixir/Erlang in 20 seconds in China
# 1.4 on ubuntu 14.04
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/esl-erlang_19.2-1~ubuntu~trusty_amd64.deb
sudo dpkg -i esl-erlang_19.2-1~ubuntu~trusty_amd64.deb
sudo apt-get -f -y install
sudo dpkg -i esl-erlang_19.2-1~ubuntu~trusty_amd64.deb
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/elixir_1.4.1-1~ubuntu~trusty_all.deb
sudo dpkg -i elixir_1.4.1-1~ubuntu~trusty_all.deb
elixir -v
# 1.5 on ubuntu 14.04
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/esl-erlang_20.1-1~ubuntu~trusty_amd64.deb
sudo dpkg -i esl-erlang_20.1-1~ubuntu~trusty_amd64.deb
sudo apt-get -f -y install
sudo dpkg -i esl-erlang_20.1-1~ubuntu~trusty_amd64.deb
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/elixir_1.5.2-1~ubuntu~trusty_amd64.deb
sudo dpkg -i elixir_1.5.2-1~ubuntu~trusty_amd64.deb
elixir -v
# 1.5 on ubuntu 16.04
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
sudo dpkg -i esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
sudo apt-get -f -y install
sudo dpkg -i esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/elixir_1.5.2-1~ubuntu~xenial_amd64.deb
sudo dpkg -i elixir_1.5.2-1~ubuntu~xenial_amd64.deb
elixir -v
# 1.6 on ubuntu 14.04
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/esl-erlang_20.3-1~ubuntu~trusty_amd64.deb
sudo dpkg -i esl-erlang_20.3-1~ubuntu~trusty_amd64.deb
sudo apt-get -f -y install
sudo dpkg -i esl-erlang_20.3-1~ubuntu~trusty_amd64.deb
wget https://mirrors.tuna.tsinghua.edu.cn/erlang-solutions/ubuntu/pool/elixir_1.6.5-1~ubuntu~trusty_amd64.deb
sudo dpkg -i elixir_1.6.5-1~ubuntu~trusty_amd64.deb
elixir -v
# sudo apt-get install git (edeliver)
# rebar
cd /tmp
HEX_MIRROR=https://hexpm.upyun.com mix local.rebar --force
~/.mix/rebar3 update
# hex 0.15.0(support for mirror)
wget https://github.com/hexpm/hex/archive/v0.15.0.tar.gz
tar zxf v0.15.0.tar.gz
cd hex-0.15.0
mix install
mix hex.config mirror_url https://hexpm.upyun.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment