I just discovered I can no longer gem push …
any more and some digging led me to a need to update my RVM SSL certs.
I ran rvm osx-ssl-certs status all
but that gave me:
/Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': dlopen(/Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError)
Referenced from: /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle
Reason: image not found - /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle
from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/openssl.rb:17:in `<top (required)>'
from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
Certificates for /usr/local/etc/openssl/cert.pem: Up to date.
Certificates for : Old.
Certificates for /etc/openssl/cert.pem: Up to date.
rvm -v
shows I am running the latest RVM (as of today)
rvm 1.22.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
Oddly I am not sure why it's referring to ruby-2.0.0-p195
however as rvm list
gives
rvm rubies
ruby-1.9.3-p392 [ x86_64 ]
ruby-2.0.0-p195 [ x86_64 ]
=* ruby-2.0.0-p247 [ x86_64 ]
Any ideas how to fix this?
Uninstalling openssl and re-installing it worked for me.
and then
worked for me
Trying to run 'bundle' I also started getting the openssl dylib complaint, though a slightly different path. I tried most of these, and a few other things. I had rvm, and some broken remnants of a fink install, though I'd tried to replace it with brew a while back. Many times I was getting
However trying to re-install openssl with brew always produced
or
So it was pretty confusing what I should do. What seemed to help in the end, after much trial, included:
which had references to the non-existent /sw/lib/libssl.1.0.0.dylib file. Then
brought my version up from 1.9.1 to
At which point I had to re-install bundler (?)
But finally I could run 'bundle' on my project and it seemed to behave.
Your questions mentions three paths
/opt/local
,/usr/local
and/etc/openssl
they belong to Macports, Homebrew and SM Framework respectively.As the last one is used to build static rubies it is harmeless and not related to the problem. The other two suggest that you have switched from macports to homebrew between installing the rubies.
You need to reinstall
ruby-2.0.0-p195
which is referring still the old paths from macports, you can do it with:You can get more details about the rubies and openssl paths they use running:
In my case it was the Ruby version when bundling:
I did:
output:
and then I changed to
ruby-2.0.0-p451
:and:
bundle was done successfully ;)