Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)

Solution 1:

I just fixed a similar issue on my system. You need to rebuild your install of Ruby 2.1.2 and it will re-link against the newly-updated SSL.

$ rbenv install 2.1.2
rbenv: /Users/ryan/.rbenv/versions/2.1.2 already exists
continue with installation? (y/N) y
Downloading ruby-2.1.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635
Installing ruby-2.1.2...
Installed ruby-2.1.2 to /Users/ryan/.rbenv/versions/2.1.2

Solution 2:

I had a similar issue after upgrading openssl. I use rvm. I started by upgrading rvm.

$ rvm get stable

I next reinstalled 1.9.3.

rvm reinstall ruby-1.9.3-p545

After reinstalling, I ran:

$ rvm gemset pristine

If you see any errors restoring your gemset, your best option will be to empty the gemset and rebuild it.

rvm gemset use mygemset
rvm gemset empty mygemset
gem install bundler
bundle install

If you have multiple gemsets, you will have to repeat these steps for each one of them.

Solution 3:

Have same issue for 1.9.3-p547, under rvm

rvm reinstall ruby-1.9.3-p547

Ruby gets re-installed, but fails in setting up a gemset_pristine for the application because

libv8 version 3.16.14.3 failed

which was the reason I got to this point in the first place. Vicious frustration circle...

update
Check your platform version. I have for example Darwin 10.8 and that is not listed here. So, unless your version of the libv8 gem has a precompiled binary for your platform, it is going to take a long (long-long) time. Go out for dinner, a movie, chill out... If enough ask, maybe they'll set up a binary distro...

Solution 4:

Had the same error and solved it by brew upgrade openssl

Solution 5:

You might be a dork like me, with multiple openssl's

I had the same issue for 2.1.2 and Ryan Dlugosz's excellent answer didn't go far enough. My problem was that I had multiple versions of openssl installed (I think I'd installed through brew and git in previous projects).

I had to delete /opt/local/bin/openssl and then rebuild 2.1.2.

Check global rbenv ruby

$ rbenv global
2.1.2

Check openssl

$ which -a openssl
/opt/local/bin/openssl
/opt/local/bin/openssl
/usr/bin/openssl

Kill off duplicate openssl

$ sudo rm -rf /opt/local/bin/openssl

Rebuild 2.1.2

$ rbenv install -f 2.1.2
Downloading openssl-1.0.1g.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/53cb818c3b90e507a8348f4f5eaedb05d8bfe5358aabb508b7263cc670c3e028
Installing openssl-1.0.1g...
Installed openssl-1.0.1g to /Users/globber/.rbenv/versions/2.1.2

Downloading ruby-2.1.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635
Installing ruby-2.1.2...
Installed ruby-2.1.2 to /Users/globber/.rbenv/versions/2.1.2