Notes to Self

Alex Sokolsky's Notes on Computers and Programming


Install rbenv:

sudo apt install rbenv

Install Ruby:

$ rbenv install 2.4.1
Downloading ruby-2.4.1.tar.bz2...
Installing ruby-2.4.1...
Installed ruby-2.4.1 to /home/alex/.rbenv/versions/2.4.1

Start using it:

rbenv global 2.4.1

rbenv install -l does not show latest versions because ruby-build is obsolete. Therefore had to install from github. Then installed latest ruby.

alex@latitude7490:~/Projects/ > rbenv versions
* 3.1.1 (set by /home/alex/.rbenv/version)
alex@latitude7490:~/Projects/ > which ruby
alex@latitude7490:~/Projects/ > gem install jekyll bundler