Skip to content

Instantly share code, notes, and snippets.

@alexismansilla
Last active October 7, 2022 18:34
Show Gist options
  • Save alexismansilla/b7684191932fe8fd0ba5918ea4f8803c to your computer and use it in GitHub Desktop.
Save alexismansilla/b7684191932fe8fd0ba5918ea4f8803c to your computer and use it in GitHub Desktop.
update postgres@14
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart/file_part.rb:54: warning: constant ::UploadIO is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart/file_part.rb:56: warning: constant ::Parts is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart.rb:19: warning: constant ::UploadIO is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': dlopen(/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle, 0x0009): Library not loaded: /opt/homebrew/opt/postgresql/lib/libpq.5.dylib (LoadError)
Referenced from: /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle
Reason: tried: '/opt/homebrew/opt/postgresql/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5.dylib' (no such file) - /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/pg-1.2.3/lib/pg.rb:5:in `<main>'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/runtime.rb:55:in `each'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/runtime.rb:55:in `block in require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/runtime.rb:44:in `each'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/runtime.rb:44:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler.rb:187:in `require'
from /Users/alexismansilla/code/ventanilla-back/config/application.rb:28:in `<top (required)>'
from /Users/alexismansilla/code/ventanilla-back/config/environment.rb:5:in `require_relative'
from /Users/alexismansilla/code/ventanilla-back/config/environment.rb:5:in `<top (required)>'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/sidekiq-6.4.2/lib/sidekiq/cli.rb:273:in `require'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/sidekiq-6.4.2/lib/sidekiq/cli.rb:273:in `boot_application'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/sidekiq-6.4.2/lib/sidekiq/cli.rb:37:in `run'
from /Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/sidekiq-6.4.2/bin/sidekiq:31:in `<top (required)>'
from bin/sidekiq:29:in `load'
from bin/sidekiq:29:in `<main>'
@alexismansilla
Copy link
Author

SOLUTION:

sudo mkdir -p /usr/local/lib && sudo ln -s /opt/homebrew/opt/postgresql@14/lib/postgresql@14/libpq.5.dylib /usr/local/lib/libpq.5.dylib

@alexismansilla
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment