Fixing the Ruby Error "Symbol not found: _SSLv2_client_method (LoadError)"
26 Oct 2014I was doing some work on my computer this weekend and when running a ruby script, I got a whole stack trace, with the main error being:
Symbol not found: _SSLv2_client_method (LoadError)
I use rbenv and build my own rubies, so that I don’t have to muck about with the system ruby (and gems). It should have occurred to me that after the POODLE SSL flaw, Apple would have patched (at least partially) the SSL libraries.
After a bit of Googling, Stack Overflow to the rescue. I needed to simply rebuild ruby, which would build it against the updated SSL libs.
On rbenv, if you have ruby-build installed, that’s as simple as:
rbenv install 2.1.2