Skip to content

Instantly share code, notes, and snippets.

@mthierry
Created April 2, 2018 22:47
Show Gist options
  • Save mthierry/0f440692c3384f26cc73c56167207980 to your computer and use it in GitHub Desktop.
Save mthierry/0f440692c3384f26cc73c56167207980 to your computer and use it in GitHub Desktop.

with rbenv & ruby-build

a) Prereq 1. Install rbenv (https://github.com/rbenv/rbenv)

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

b) Prereq 2. Install ruby-build (https://github.com/rbenv/ruby-build)

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

c) Install Ruby v2.5

rbenv install 2.5.0

d) Set Ruby v2.5 as the default version

rbenv global 2.5.0

e) Check

ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]

f) Install further ruby dependencies (nokogiri / XML and HTML library)

gem install nokogiri

g) ? :shipit:

h) Profit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment