Last active
December 1, 2018 17:58
-
-
Save tony612/ce9b77e06c41283ec4b0501ed7bb06b8 to your computer and use it in GitHub Desktop.
Install Elixir/Erlang in 20 seconds in China
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
# 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) |
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
# 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