Skip to content

Upgrade Ruby Notes

Thomas Scherz edited this page Feb 1, 2024 · 4 revisions

Steps for installing Ruby without RVM or RBENV

  1. download the ruby .tar.gz from https://www.ruby-lang.org/en/downloads/
  2. uncompress the tarball
  3. cd into the uncompressed directory
  4. ./configure --prefix=/usr/local
  5. make
  6. sudo make install
  7. test the proper version is in place with ruby -v

Steps for installing Ruby with RBENV

  1. rbenv install version.number
  2. See all available versions with rbenv install --list-all.
  3. If the version you need is missing, try upgrading ruby-build:

git -C /home/apache/.rbenv/plugins/ruby-build pull

  1. RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install version.number
  2. test the proper version is in place with ruby -v

If bundler give you a problem, manually install gem install bundler:1.17.3 --user-install

To make sure that there are no old versions of ruby installed wipe

  • /srv/apps/.gem
  • /srv/apps/.bundle
  • /srv/apps/.cache
  • /srv/apps/scholar_capistrano/shared/vendor/bundle/ruby/2.*