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) ? ![]()
h) Profit!