Sunday, June 29, 2014

Upgrading from ruby 2.1.1 to 2.1.2 on OSX

Follow instructions in post Upgrading to ruby 2.1.1 on OSX

Commands to upgrade ruby via rbenv


$ (RUBY_CONFIGURE_OPTS=--with-readline-dir="/usr/lib/libreadline.dylib" rbenv install 2.1.2)
$ rbenv global 2.1.2
$ rbenv rehash
$ gem install bundler
$ rbenv rehash


Notes

rbenv rehash should be run after every gem install. You can install the rbenv-gem-rehash plugin to avoid having to do this step all the time.

Results


$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]


Side Effects

This upgrade resolves the bigdecimal segmentation fault: ruby/2.1.0/bigdecimal/util.rb:39: [BUG] Segmentation fault

References

https://bugs.ruby-lang.org/issues/9657

This work is licensed under the Creative Commons Attribution 3.0 Unported License.

No comments:

Post a Comment