Linux - Compiling from source
suggest changeThis 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.
- Download a tarball from the official site (https://www.ruby-lang.org/en/downloads/).
- Extract the tarball.
- 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents