I’ve wanted to upgrade from Ruby 1.9.2 to 1.9.3 for a few weeks now, but when I’ve had the time to give it a go (a lot of testing to do to make sure I don’t break the code in the projects I run…) I’ve run into problems with SSL connections. First it was connections to Amazon SES where I got runtime errors when the SSL communication was about to happen, and then it was when running bundler install after I had switched to https://rubygems.org instead of http://rubygems.org in my gemfiles. I found posts telling there was a problem with Ruby 1.9.3 and the openssl library, but it just didn’t work out for me.
Know I’ve finally found the right recipe:
rvm list # list the installed rubies
rvm remove ruby-1.9.3-p125 # remove any 1.9.3 rubies
rvm get head # making sure I have the latest rvm
rvm pkg install iconv
rvm pkg install openssl
rvm install ruby-1.9.3-p125 --force -C --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr
rvm use ruby-1.9.3-p125
ruby -v # ruby 1.9.3p125 (2012-02-16 revision 34643)
rvm gemset create peytz_newsletters
rvm use ruby-1.9.3-p125@peytz_newsletters
gem install bundler
bundle install
The –force -C options was what made the trick for me. I found several guides telling me to download the iconv and openssl packages, but without these two extra arguments it just didn’t happen for me.
Now I’m finally on Ruby 1.9.3 – Enjoying the improved startup time of the rails environment and looking forward to seeing if I’ll gain some performance boosts in production as well. Can’t wait to get the whole team of Peytz Mail developers upgraded to Ruby 1.9.3