Install Ruby With asdf
Continuing with the install-Ruby-with-X theme, I decided to document the steps needed to install Ruby with asdf:
sudo apt install -y autoconf bison patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev # Taking the list of dependencies that rbenv's ruby plugin uses
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.2 # "Installing" asdf
# Add these to .bashrc
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
# Install NodeJS and Ruby
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs latest
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf install ruby latest
Also see: Install Ruby with rbenv | rvm | asdf