Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby 2.4 on Mac OS Mojave : image not found ... related to openssl.bundle

So i upgraded my Ruby to 2.4.9 on Mac OS Mojave.

I'm having trouble gem-installing...

    proj$ gem install google-cloud-vision
ERROR:  Loading command: install (LoadError)
    dlopen(/Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle
  Reason: image not found - /Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

proj$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

I already did a bunch of brew update && brew upgrade, but i'm stuck... any pointers?

like image 775
Matthew Avatar asked Jan 31 '20 03:01

Matthew


1 Answers

Per the comment: Remove Ruby and reinstall.

like image 78
Matthew Avatar answered Nov 06 '22 12:11

Matthew