I have been having an issuing loading my app. I built it in an older version of rails and a few months back upgraded my rails to 5.0.7.2 With ruby 2.5.1p57. I'm using Homebrew with chruby.
I'm using 'pg', '~> 0.18'
When I start my app in terminal I get the following error.
from /Users/MyName/.gem/ruby/2.5.1/gems/pg-0.21.0/lib/pg.rb:4:in
<top (required)>' /Users/MyName/.gem/ruby/2.5.1/gems/pg-0.21.0/lib/pg.rb:4:in
require': incompatible library version - /Users/MyName/.gem/ruby/2.5.1/gems/pg-0.21.0/lib/pg_ext.bundle (LoadError)
I have tried a few directions but it takes me down a path where It breaks things and I end up here again. Can someone give me some direction?
Tried gem pristine --all - now I'm getting a new issue. Thoughts?
> Joshuas-iMac:reviewbox2 JoshuaRinard$ gem pristine --all Ignoring
> childprocess-2.0.0 because its extensions are not built. Try: gem
> pristine childprocess --version 2.0.0 Ignoring ffi-1.9.23 because its
> extensions are not built. Try: gem pristine ffi --version 1.9.23
> Ignoring msgpack-1.2.4 because its extensions are not built. Try: gem
> pristine msgpack --version 1.2.4 Ignoring sqlite3-1.4.1 because its
> extensions are not built. Try: gem pristine sqlite3 --version 1.4.1
> Ignoring websocket-driver-0.7.0 because its extensions are not built.
> Try: gem pristine websocket-driver --version 0.7.0 ERROR: Loading
> command: pristine (LoadError)
> dlopen(/Users/JoshuaRinard/.rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle,
> 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
> Referenced from:
> /Users/JoshuaRinard/.rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
> Reason: image not found -
> /Users/JoshuaRinard/.rubies/ruby-2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
> ERROR: While executing gem ... (NoMethodError)
> undefined method `invoke_with_build_args' for nil:NilClass