rubyruby-2.2

Ruby 2.2.3 in 2020


Ruby 2.2.3 has been dead for a while and yet I've been asked to look at a legacy project in order to update and fix it. I can't get 2.2.3 to install in order to get a local env up and running on either MacOS or Ubuntu.

The error seems to be down to an openssl rubygems issue:

from rubygems.install.log

Exception `LoadError' at /Users/user/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems.rb:1222 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/user/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems.rb:1231 - cannot load such file -- rubygems/defaults/ruby
/Users/user/.rvm/src/rubygems-3.0.8/lib/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- openssl (LoadError)

Does anyone have any suggestions on how proceed?


Solution

  • On MacOS using rbenv instead of rvm solves this issue and has allowed me to move onto another host of dependency issues.