Skip to content

Instantly share code, notes, and snippets.

@itSQualL
Created December 15, 2019 10:17
Show Gist options
  • Save itSQualL/30db25200354a598f8cbf898827779c3 to your computer and use it in GitHub Desktop.
Save itSQualL/30db25200354a598f8cbf898827779c3 to your computer and use it in GitHub Desktop.
asdf ruby install
# 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