Created
December 15, 2019 10:17
-
-
Save itSQualL/30db25200354a598f8cbf898827779c3 to your computer and use it in GitHub Desktop.
asdf ruby install
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
# clone asdf | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.5 | |
# Add asdf to bash | |
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
#install dependencies | |
sudo apt install \ | |
automake autoconf libreadline-dev \ | |
libncurses-dev libssl-dev libyaml-dev \ | |
libxslt-dev libffi-dev libtool unixodbc-dev \ | |
unzip curl | |
# install ruby plugin | |
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git | |
asdf install ruby 2.6.4 | |
asdf global ruby 2.6.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment