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
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.
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...
Had the same error and solved it by brew upgrade openssl
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.
$ rbenv global
2.1.2
$ which -a openssl
/opt/local/bin/openssl
/opt/local/bin/openssl
/usr/bin/openssl
$ sudo rm -rf /opt/local/bin/openssl
$ 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
deleting RVM
How can I remove RVM (Ruby Version Manager) from my system?
installing RVM, Rail
$ curl -L https://get.rvm.io | bash -s
$ rvm get stable
$ rvm requirements
$ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr
$ rvm use 2.0.0 $ gem update --system 2.0.3
$ gem install rails --version 4.0.5
rbenv users:
It helps to make sure that you are using the right version of ruby. If you reinstall rbenv or install a new ruby, change to the ruby version you just installed:
$ rbenv local 2.1.3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With