Skip to content

Instantly share code, notes, and snippets.

@ketzacoatl
Last active December 31, 2018 09:20
Show Gist options
  • Save ketzacoatl/173f5fc72159e25d61feac79e8b77d70 to your computer and use it in GitHub Desktop.
Save ketzacoatl/173f5fc72159e25d61feac79e8b77d70 to your computer and use it in GitHub Desktop.

Install ruby-build

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment