Last active
March 3, 2017 10:39
-
-
Save ivawzh/438b95e7441d45828791c8652530be99 to your computer and use it in GitHub Desktop.
Install Elixir and Erlang
This file contains hidden or 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.install version manager ASDF | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch <latest version> | |
# For Ubuntu or other linux distros | |
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
# 2. install erlang and elixir | |
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git | |
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git | |
# prerequisite for erlang | |
sudo apt-get --fix-missing -y install build-essential m4 openssl libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
asdf list-all erlang | |
asdf install erlang <latest version number from above> | |
asdf list-all elixir | |
asdf install elixir <latest version number from above> |
This file contains hidden or 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
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb | |
sudo apt-get update | |
sudo apt-get install esl-erlang=1:18.3 | |
sudo rm /usr/bin/erl | |
sudo ln -s /usr/lib/erlang/bin/erl /usr/bin/erl | |
sudo apt-get install elixir |
This file contains hidden or 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
# install Hex, the dependencies manager | |
mix local.hex | |
# install phoenix | |
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez | |
This file contains hidden or 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
Fuck that. | |
Just install on windows side natively via .exe | |
Then bash on Windows can connect local postgres on localhost 127.0.0.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment