Rails server doesn't work ever, How can I solve that? - ruby-on-rails

I tried all day, and reset my windows twice
$ rails server
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:2:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require'
from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require'
from C:/Users/esmo4/Desktop/aaaaaa/config/application.rb:7:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
from bin/rails:4:in `<main>'

Change your sqlite3 gem in the Gemfile for this:
gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"
Then run:
bundle install
And
Rails s

Related

Active Admin won't install: superclass mismatch for class StringIO (TypeError)

I was recently trying to install Active Admin but it keeps producing this error below. I have added activeadmin, devise, draper, cancancan, and pundit to the gemfile. For reference, I am trying to install Active Admin on a basic blog app for ruby on rails (https://guides.rubyonrails.org/getting_started.html)
Command:
rails g active_admin:install
Error:
/home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': superclass mismatch for class StringIO (TypeError)
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/2.5.0/psych/nodes/node.rb:2:in `<top (required)>'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/2.5.0/psych/nodes.rb:2:in `<top (required)>'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/2.5.0/psych.rb:14:in `<top (required)>'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/2.5.0/yaml.rb:6:in `<top (required)>'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/compile_cache/yaml.rb:55:in `init!'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/compile_cache/yaml.rb:50:in `install!'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/compile_cache.rb:20:in `setup'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap.rb:70:in `setup'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap.rb:112:in `default_setup'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/bootsnap-1.9.1/lib/bootsnap/setup.rb:4:in `<top (required)>'
from /home/hjamal/blog/config/boot.rb:4:in `require'
from /home/hjamal/blog/config/boot.rb:4:in `<top (required)>'
from /home/hjamal/blog/config/application.rb:1:in `require_relative'
from /home/hjamal/blog/config/application.rb:1:in `<top (required)>'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:92:in `require'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:92:in `preload'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:155:in `serve'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:143:in `block in run'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:137:in `loop'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application.rb:137:in `run'
from /home/hjamal/.rvm/gems/ruby-2.5.8/gems/spring-3.0.0/lib/spring/application/boot.rb:19:in `<top (required)>'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /home/hjamal/.rvm/rubies/ruby-2.5.8/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from -e:1:in `<main>'

Poppler + Rails gives me an error on M1 Mac

App I am working on has Poppler as a gem. When I try to run the rails server after bundle install I get the following;
/Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler/loader.rb:93:in `define_struct':
uninitialized constant Poppler::Loader::Action (NameError)
And I'm completely stuck.
I have attempted to brew install poppler which seemed to work fine, but the error is the same. All of my gems are up to date. My OS is up to date.
Others in my company aren't having this issue.
I'm terrible at solving this sort of things.. thoughts?
And to be through here is a complete error dump from rails s to exit:
(NULL)-WARNING **: Failed to load shared library 'libpoppler-glib.8.dylib' referenced by the typelib: dlopen(libpoppler-glib.8.dylib, 9): image not found
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:561:in `load_union_info'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:74:in `load_info'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:43:in `block in load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:34:in `block (2 levels) in each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `times'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `block in each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:42:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:27:in `<module:Poppler>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:22:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:66:in `block (2 levels) in require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `each'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `block in require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `each'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler.rb:173:in `require'
from /Users/me/Sites/ambiki/config/application.rb:7:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `block in require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `tap'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/Sites/ambiki/bin/rails:9:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/me/Sites/ambiki/bin/spring:15:in `require'
from /Users/me/Sites/ambiki/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
(NULL)-WARNING **: Failed to load shared library 'libpoppler.111.dylib' referenced by the typelib: dlopen(libpoppler.111.dylib, 9): image not found
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:561:in `load_union_info'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:74:in `load_info'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:43:in `block in load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:34:in `block (2 levels) in each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `times'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `block in each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:42:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:27:in `<module:Poppler>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:22:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:66:in `block (2 levels) in require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `each'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `block in require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `each'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `require'
from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler.rb:173:in `require'
from /Users/me/Sites/ambiki/config/application.rb:7:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `block in require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `tap'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/me/Sites/ambiki/bin/rails:9:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/me/Sites/ambiki/bin/spring:15:in `require'
from /Users/me/Sites/ambiki/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Traceback (most recent call last):
54: from bin/rails:3:in `<main>'
53: from bin/rails:3:in `load'
52: from /Users/me/Sites/ambiki/bin/spring:15:in `<top (required)>'
51: from /Users/me/Sites/ambiki/bin/spring:15:in `require'
50: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
49: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
48: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
47: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
46: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
45: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
44: from /Users/me/.rvm/gems/ruby-2.7.3/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
43: from /Users/me/Sites/ambiki/bin/rails:9:in `<top (required)>'
42: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
41: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
40: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
39: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
38: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
37: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
36: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
35: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
34: from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
33: from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
32: from /Users/me/.rvm/gems/ruby-2.7.3/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
31: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
30: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `tap'
29: from /Users/me/.rvm/gems/ruby-2.7.3/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
28: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
27: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
26: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
25: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
24: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
23: from /Users/me/Sites/ambiki/config/application.rb:7:in `<main>'
22: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler.rb:173:in `require'
21: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `require'
20: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:50:in `each'
19: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `block in require'
18: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:61:in `each'
17: from /Users/me/.rvm/rubies/ruby-2.7.3/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:66:in `block (2 levels) in require'
16: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
15: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
14: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
13: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
12: from /Users/me/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
11: from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:22:in `<main>'
10: from /Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler.rb:27:in `<module:Poppler>'
9: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:42:in `load'
8: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
7: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:32:in `each'
6: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `block in each'
5: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:33:in `times'
4: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/repository.rb:34:in `block (2 levels) in each'
3: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:43:in `block in load'
2: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:60:in `load_info'
1: from /Users/me/.rvm/gems/ruby-2.7.3/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:137:in `load_struct_info'
/Users/me/.rvm/gems/ruby-2.7.3/gems/poppler-3.4.4/lib/poppler/loader.rb:93:in `define_struct': uninitialized constant Poppler::Loader::Action (NameError)
Okay after days of fighting with it. There is a weird homebrew issue (I think) where it installs the libraries required for poppler at /opt/homebrew/lib/ but it after digging it needs to be /usr/local/lib/ so a couple sim links later, it appears to be running now..

Bundler::GemRequireError and Gem Load Error is: AddDllDirectory failed when switching from Sqlite3 to Postgres

I have a project in rails which worked with SQLITE3. I have to move out to POSTGRES, because Heroku needs to.
Following the docs: https://devcenter.heroku.com/articles/sqlite3#running-rails-on-postgres, here's what I did:
changed Gemfile:
from gem 'sqlite3' to gem 'pg'
Note: I've also tried gem 'pg', '~> 1.2', '>= 1.2.3' and gem 'pg', '~> 1.2', '>= 1.2.2'. They all return the same error.
Ran bundle install without errors
Modified config/database.yml
default: &default
adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
<<: *default
database: test_postgres
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: test_postgres
production:
<<: *default
database: test_postgres
According to the docs,
Once you’ve installed the pg gem and migrated your config/database.yml
I tried rails db:migrate which returned:
Bundler::GemRequireError: There was an error while trying to load the gem 'pg'.
Gem Load Error is: AddDllDirectory failed for D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/x64-mingw32
Backtrace for gem load error is:
...
Note: same error shows on rake db:migrate
rails s prints out the same error:
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:69:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'pg'. (Bundler::GemRequireError)
Gem Load Error is: AddDllDirectory failed for D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/x64-mingw32
Backtrace for gem load error is:
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:83:in `add_dll_directory_winapi'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:50:in `initialize'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `new'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `add_dll_directory'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:15:in `block in <main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:26:in `rescue in <main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:4:in `<main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:66:in `block (2 levels) in require'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
D:/Fresqui/Documents/Programar/yale-citrus/config/application.rb:7:in `<main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `block in require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:299:in `load_dependency'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
<internal:kernel>:90:in `tap'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `perform'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command/base.rb:69:in `perform'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command.rb:50:in `invoke'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands.rb:18:in `<main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:65:in `block (2 levels) in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
from D:/Fresqui/Documents/Programar/yale-citrus/config/application.rb:7:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `block in require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from <internal:kernel>:90:in `tap'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command/base.rb:69:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command.rb:50:in `invoke'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands.rb:18:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from bin/rails:4:in `<main>'
D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:83:in `add_dll_directory_winapi': AddDllDirectory failed for D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/x64-mingw32 (RubyInstaller::Runtime::DllDirectory::WinApiError)
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:50:in `initialize'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `new'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `add_dll_directory'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:15:in `block in <main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:26:in `rescue in <main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:4:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:66:in `block (2 levels) in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
from D:/Fresqui/Documents/Programar/yale-citrus/config/application.rb:7:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `block in require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from <internal:kernel>:90:in `tap'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command/base.rb:69:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command.rb:50:in `invoke'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands.rb:18:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from bin/rails:4:in `<main>'
D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': 126: The specified module could not be found. - D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg_ext.so (LoadError)
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `block in require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:5:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:66:in `block (2 levels) in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:61:in `block in require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `each'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:50:in `require'
from D:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler.rb:173:in `require'
from D:/Fresqui/Documents/Programar/yale-citrus/config/application.rb:7:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `block in require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:299:in `load_dependency'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/activesupport-6.1.2/lib/active_support/dependencies.rb:332:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from <internal:kernel>:90:in `tap'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands/server/server_command.rb:135:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command/base.rb:69:in `perform'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/command.rb:50:in `invoke'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-6.1.2/lib/rails/commands.rb:18:in `<main>'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from bin/rails:4:in `<main>'
I couldn't find anything about the gem being deprecated, nothing in the docs and not many posts with the same error. Any clues?
Here is the original answer link, install postgresql per pacman:
ridk exec pacman -S mingw-w64-x86_64-postgresql
reinstall pg gem gem install pg
run database setup script rails db:setup

Error when running rake db:create: undefined method `extend_object' for class `Singleton'

When I run rake db:create on my project I get this error:
NameError: undefined method `extend_object' for class `Singleton'
Did you mean? extended
This project used to run on Ruby 3.0.0 but I'm downgrading to 2.7.1 because I was getting some crashes and other issues. The full backtrace is:
rake aborted!
NameError: undefined method `extend_object' for class `Singleton'
Did you mean? extended
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/deprecation.rb:3:in `<main>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/rails.rb:26:in `<main>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/actionpack-6.1.2.1/lib/action_dispatch.rb:27:in `<main>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/actionpack-6.1.2.1/lib/action_dispatch/railtie.rb:3:in `<main>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/railties-6.1.2.1/lib/rails.rb:18:in `<main>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Users/pupeno/Code/imok/config/application.rb:3:in `<top (required)>'
C:/Users/pupeno/Code/imok/Rakefile:4:in `require_relative'
C:/Users/pupeno/Code/imok/Rakefile:4:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
Any ideas what's going on?
rake db:migrate fails the same way, but rails s seems to work (until it tries to do anything with the database and throws a ActiveRecord::NoDatabaseError, as expected).
If I remove Bootsnap, the error is:
NameError: undefined method `extend_object' for class `Singleton'
Did you mean? extended
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/deprecation.rb:3:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/rails.rb:26:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/actionpack-6.1.2.1/lib/action_dispatch.rb:27:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/actionpack-6.1.2.1/lib/action_dispatch/railtie.rb:3:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/railties-6.1.2.1/lib/rails.rb:18:in `<top (required)>'
C:/Users/pupeno/Code/imok/config/application.rb:3:in `require'
C:/Users/pupeno/Code/imok/config/application.rb:3:in `<top (required)>'
C:/Users/pupeno/Code/imok/Rakefile:4:in `require_relative'
C:/Users/pupeno/Code/imok/Rakefile:4:in `<top (required)>'
C:/Users/pupeno/scoop/persist/ruby/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
I was hitting this very frustrating problem for a long time and I think it boiled down to some gem incompatabilities. I fixed it by doing the following:
rm Gemfile.lock
bundle install

Rails aborted! ArgumentError: wrong number of arguments (given 0, expected 1..2)

I am trying to to do a production migration and get the above error. In Dev mode they work fine but when I try to migrate to production I get this error.
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/cache/file_store.rb:24:in `initialize'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/cache.rb:60:in `new'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/cache.rb:60:in `lookup_store'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/application/bootstrap.rb:67:in `block in <module:Bootstrap>'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `instance_exec'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `run'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/initializable.rb:60:in `run_initializers'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/application.rb:361:in `initialize!'
/home/Steven.Cahill/Brighter/Adviser/config/environment.rb:7:in `<main>'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/application.rb:337:in `require_environment!'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/command.rb:48:in `invoke'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4.1/lib/rails/commands.rb:18:in `<main>'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/home/Steven.Cahill/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require'
Check out Brighter/Adviser/config/environment.rb:7:in `'
This error indicates that rvm is having issues with requiring a few dependencies.
Check out your rvm setup
You need specify correctly number of arguments when call this command

Resources