Search code examples
rubyoh-my-zshchruby

Upgraded to Yosemite and now ruby libraries are breaking


I upgraded to Yosemite, and now when I try to setup an initial rails app using rails new <appname> I am getting an error message:

/Users/****/.rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/*****/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/x86_64-darwin13.3.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError)

I am using homebrew and chruby not RVM and my shell is Oh-my-Zsh.


Solution

  • I suspect you compiled Ruby on the old version of Mac OS X, and it depended on the _SSLv2_client_method function from OpenSSL. That function is very old (SSL v2 is an old protocol) so it was probably removed from OpenSSL, and upgrading your operating system probably introduced a new version of OpenSSL without that function.

    Anyway, you should just try removing your whole ~/.rubies folder (or move it to a new place) and starting from scratch, recompiling Ruby according to the chruby Wiki.

    Here is a related question, which I found by simply Googling for "_SSLv2_client_method ruby mac": Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)