Linux - Compiling from source

suggest change

This installs a current Ruby, but that Ruby is not managed by a version manager.

Change the version in the URL so it matches the release you want.

  1. Download a tarball from the official site (https://www.ruby-lang.org/en/downloads/).
  2. Extract the tarball.
  3. Build and install.
$> wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz
$> tar -xvzf ruby-2.3.3.tar.gz
$> cd ruby-2.3.3
$> ./configure
$> make
$> sudo make install

This installs Ruby into /usr/local. To choose another directory, pass --prefix=DIR to ./configure, where DIR is that directory.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents