dep
sudo apt-get install -y libreadline-dev
src
ᐅ git clone https://github.com/rbenv/ruby-build.git
Cloning into 'ruby-build'...
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 9620 (delta 9), reused 23 (delta 4), pack-reused 9591
Receiving objects: 100% (9620/9620), 2.03 MiB | 225.00 KiB/s, done.
Resolving deltas: 100% (6275/6275), done.
Checking connectivity... done.
install the tool
ᐅ PREFIX=/usr/local sudo ./ruby-build/install.sh
build/install some ruby version
ᐅ ruby-build 2.3.0 ~/local/ruby-2.3.0
Downloading ruby-2.3.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
Installing ruby-2.3.0...
Installed ruby-2.3.0 to /home/user/local/ruby-2.3.0