Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Currently our supported Ruby version in Sufia 6 7 is 2. 2.4.Curation Experts has moved their default version to 2.3.1 so our groupvars/all file now includes overwrite variables for the default Ruby versions.

 

How to Rollback and upgrade if needed

We are manually building Ruby and not using the packaged version of Ruby (it is too old). Currently we do not use rvm or a similar tool (I assume because those tools cause issues with Hydra/Sufia? -Dan). Thankfully upgrading/downgrading ruby is easy enough.Run .

The preferred method is to simply build a new box with the desired Ruby version.

If you need to edit Ruby versions in place follow these instructions.

To uninstall run the following:

  1. whereis ruby
  2. rm -r (all results from prior command)
  3. That should remove the old versions

...

Then go grab the desired Ruby version from the Ruby site and follow the normal manual install commands.

Once installed you'll need to add bundler as well

sudo gem install bundler

...

To install:

  1. Download Ruby version
  2. Follow these instructions: https://www.ruby-lang.org/en/documentation/installation/#building-from-source
  3. Add bundler with sudo gem install bundler

Since this takes Ruby out for a while never do this on Production.