Poppler + Rails gives me an error on M1 Mac - ruby-on-rails

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..

Related

Error while running rails new App_Path or rails -- help -- Bootsnap::LoadPathCache::FallbackScan

I keep getting the same error message when I try to run rails --help and 'rails new APP_PATH. I have tried running rvm gemset empty and I keep getting the same error message. Do I have to uninstall Ruby and Rails and reinstall everything? I am worried about trying this solution but am tempted to try bundle clean as mentioned here. Has anyone seen this error before and have any insight on how I may rectify it?
> rails --help
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
test Run tests except system tests (short-cut alias: "t")
test:system Run system tests
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
All commands can be run with -h (or --help) for more information.
In addition to those commands, there are:
Traceback (most recent call last):
bin/rails: Bootsnap::LoadPathCache::FallbackScan
102: from bin/rails:3:in `<main>'
101: from bin/rails:3:in `load'
100: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/spring:15:in `<top (required)>'
99: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/spring:15:in `require'
98: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
97: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
96: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
95: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
94: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
93: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
92: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
91: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/rails:9:in `<top (required)>'
90: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
89: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
88: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
87: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
86: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
85: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
84: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
83: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
82: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands.rb:18:in `<main>'
81: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
80: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/base.rb:69:in `perform'
79: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
78: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
77: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
76: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/help/help_command.rb:11:in `help'
75: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:86:in `print_commands'
74: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `commands'
73: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `flat_map'
72: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `each'
71: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:12:in `printing_commands'
70: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:42:in `formatted_rake_tasks'
69: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:33:in `rake_tasks'
68: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
67: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/actions.rb:22:in `require_application!'
66: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
65: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
64: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
63: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
62: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
61: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
60: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
59: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
58: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/config/application.rb:7:in `<main>'
57: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
56: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
55: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
54: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
53: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
52: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
51: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
50: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
49: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
48: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
47: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
46: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sass-rails-6.0.0/lib/sass-rails.rb:1:in `<main>'
45: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
44: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
43: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
42: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
41: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
40: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
39: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
38: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
37: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-rails-2.1.2/lib/sassc/rails.rb:5:in `<main>'
36: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
35: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
34: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
33: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
32: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
31: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
30: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
29: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
28: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-2.3.0/lib/sassc.rb:31:in `<main>'
27: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
26: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
25: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
24: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
23: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
22: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
21: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
20: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
19: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
18: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-2.3.0/lib/sassc/native.rb:3:in `<main>'
17: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
16: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
15: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
14: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
13: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
12: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
11: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
10: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
9: from /Users/user/.rvm/gems/ruby-2.6.1/gems/ffi-1.12.2/lib/ffi.rb:4:in `<main>'
8: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
7: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
6: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
5: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require'
4: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:41:in `rescue in require'
3: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
1: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': cannot load such file -- 2.6/ffi_c (LoadError)
102: from bin/rails:3:in `<main>'
101: from bin/rails:3:in `load'
100: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/spring:15:in `<top (required)>'
99: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/spring:15:in `require'
98: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
97: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
96: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
95: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
94: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
93: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
92: from /Users/user/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
91: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/bin/rails:9:in `<top (required)>'
90: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
89: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
88: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
87: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
86: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
85: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
84: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
83: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
82: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands.rb:18:in `<main>'
81: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:46:in `invoke'
80: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/base.rb:69:in `perform'
79: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
78: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
77: from /Users/user/.rvm/gems/ruby-2.6.1/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
76: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/help/help_command.rb:11:in `help'
75: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:86:in `print_commands'
74: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `commands'
73: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `flat_map'
72: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command.rb:96:in `each'
71: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:12:in `printing_commands'
70: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:42:in `formatted_rake_tasks'
69: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/commands/rake/rake_command.rb:33:in `rake_tasks'
68: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
67: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/railties-6.0.3.1/lib/rails/command/actions.rb:22:in `require_application!'
66: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
65: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
64: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
63: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
62: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
61: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
60: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
59: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
58: from /Users/user/Library/Mobile Documents/com~apple~CloudDocs/Documents/class/Labs/code-alongs/config/application.rb:7:in `<main>'
57: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
56: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
55: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
54: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
53: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
52: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
51: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
50: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
49: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
48: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
47: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
46: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sass-rails-6.0.0/lib/sass-rails.rb:1:in `<main>'
45: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
44: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
43: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
42: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
41: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
40: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
39: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
38: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
37: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-rails-2.1.2/lib/sassc/rails.rb:5:in `<main>'
36: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
35: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
34: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
33: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
32: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
31: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
30: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
29: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
28: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-2.3.0/lib/sassc.rb:31:in `<main>'
27: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
26: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
25: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
24: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
23: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
22: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
21: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
20: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
19: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
18: from /Users/user/.rvm/gems/ruby-2.6.1/gems/sassc-2.3.0/lib/sassc/native.rb:3:in `<main>'
17: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
16: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
15: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
14: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
13: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
12: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
11: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
10: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
9: from /Users/user/.rvm/gems/ruby-2.6.1/gems/ffi-1.12.2/lib/ffi.rb:3:in `<main>'
8: from /Users/user/.rvm/gems/ruby-2.6.1/gems/ffi-1.12.2/lib/ffi.rb:6:in `rescue in <main>'
7: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `require'
6: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:291:in `load_dependency'
5: from /Users/user/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/dependencies.rb:324:in `block in require'
4: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
1: from /Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/user/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': incompatible library version - /Users/user/.rvm/gems/ruby-2.6.1/gems/ffi-1.12.2/lib/ffi_c.bundle (LoadError)
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
Bootsnap::LoadPathCache::FallbackScan:
(See full trace by running task with --trace)
My rails version
> rails -v
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Rails 6.0.3.1

undefined method `namespace' for main:Object (NoMethodError) when running rails server after adding pg_dump

After adding pg_dump I get this error when running the rails server:
Traceback (most recent call last):
50: from bin/rails:3:in `<main>'
49: from bin/rails:3:in `load'
48: from /home/fajweh/dumptest/bin/spring:15:in `<top (required)>'
47: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
46: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
45: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
44: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
43: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
42: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
41: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
40: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
39: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
38: from /home/fajweh/dumptest/bin/rails:9:in `<top (required)>'
37: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
36: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
35: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
34: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
33: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
32: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
31: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
30: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
29: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/commands.rb:18:in `<main>'
28: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/command.rb:46:in `invoke'
27: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/command/base.rb:65:in `perform'
26: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
25: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
24: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
23: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:138:in `perform'
22: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:138:in `tap'
21: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:141:in `block in perform'
20: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
19: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
18: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
17: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
16: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
15: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
14: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
13: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
12: from /home/fajweh/dumptest/config/application.rb:7:in `<main>'
11: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:114:in `require'
10: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `require'
9: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:65:in `each'
8: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `block in require'
7: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:76:in `each'
6: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
5: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
4: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
3: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
1: from /home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/home/fajweh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/pg_dump-0.5.0/lib/pg_dump.rb:3:in `<main>': undefined method `namespace' for main:Object (NoMethodError)
I replicated this with a fresh rails app.
This gem appears to be not very well maintained: https://github.com/ziyouchutuwenwu/pg_dump
What are you trying to do? You can dump your DB with the postgres commands directly, you dont need a gem:
pg_dump mydb > db.sql

eager_load crashes boot up in production

eager_load = true will crash the application on boot up. This has been tested on both my local machine and server trying to boot in production. Setting eager_load to false will fix the problem but i would like to have eager load on.
I've checked the stack trace, nothing like undefined variables can be seen. I put eagerload to true in development and it works which is the strange thing.
I went through and tested all controllers and models in case something was being loading without being defined.
RAILS_ENV=production rails s
=> Booting Puma
=> Rails 5.2.3 application starting in production
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
109: from bin/rails:3:in `<main>'
108: from bin/rails:3:in `load'
107: from /home/andrew/workspace/kanadash/bin/spring:15:in `<top (required)>'
106: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
105: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
104: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
103: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
102: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
101: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
100: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
99: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
98: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
97: from /home/andrew/workspace/kanadash/bin/rails:9:in `<top (required)>'
96: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
95: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
94: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
93: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
92: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
91: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
90: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
89: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
88: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>'
87: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
86: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
85: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
84: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
83: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
82: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `perform'
81: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `tap'
80: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in `block in perform'
79: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in `start'
78: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
77: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
76: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in `app'
75: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
74: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
73: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
72: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
71: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
70: from config.ru:in `<main>'
69: from config.ru:in `new'
68: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
67: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
66: from config.ru:3:in `block in <main>'
65: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
64: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
63: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
62: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
61: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
60: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
59: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
58: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
57: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
56: from /home/andrew/workspace/kanadash/config/environment.rb:5:in `<main>'
55: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
54: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
53: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
52: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
51: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
50: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `call'
49: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each'
48: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
47: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
46: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
45: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
44: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
43: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
42: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
41: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
40: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `each'
39: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in `eager_load!'
38: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `eager_load!'
37: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `each'
36: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `block in eager_load!'
35: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `each'
34: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
33: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in `require_dependency'
32: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:in `depend_on'
31: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in `depend_on'
30: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in `require_or_load'
29: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
28: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `block in require_or_load'
27: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in `require_or_load'
26: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `load_interlock'
25: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
24: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
23: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
22: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
21: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
20: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
19: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
18: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
17: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
16: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
15: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
14: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
13: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
12: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:16:in `<main>'
11: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:235:in `<class:Blob>'
10: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
9: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `each'
8: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
7: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
6: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
5: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
4: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
3: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/lib/active_storage/engine.rb:95:in `block (2 levels) in <class:Engine>'
2: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/erb.rb:901:in `result'
1: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/erb.rb:901:in `eval'
(erb):11:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
I expected either the development server to not start up with eager_load true or the production server to start up with eager_load true. It's really strange eager_load works in development but not production.

Rails server doesn't work ever, How can I solve that?

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

Rails server wont run and I get error with "Rails sever" command

I'm on windows 10 and i'm using microsoft sql server.
Here's the error I get in cmd when I run command "Rails server":
Traceback (most recent call last):
59: from bin/rails:4:in `<main>'
58: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
57: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
56: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
55: from D:/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'
54: from D:/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'
53: from D:/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'
52: from D:/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'
51: from D:/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'
50: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<top (required)>'
49: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
48: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
47: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
46: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
45: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
44: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
43: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
42: from D:/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'
41: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
40: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
39: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
38: from D:/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'
37: from D:/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'
36: from D:/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'
35: from D:/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'
34: from D:/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'
33: from C:/Users/My Comp/RubyProjects/Project1/config/application.rb:7:in `<top (required)>'
32: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler.rb:114:in `require'
31: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:65:in `require'
30: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:65:in `each'
29: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:76:in `block in require'
28: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:76:in `each'
27: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
26: from D:/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'
25: from D:/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'
24: from D:/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'
23: from D:/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'
22: from D:/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'
21: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/activerecord-sqlserver-adapter.rb:1:in `<top (required)>'
20: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
19: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
18: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
17: from D:/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'
16: from D:/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'
15: from D:/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'
14: from D:/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'
13: from D:/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'
12: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter.rb:3:in `<top (required)>'
11: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
10: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
9: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
8: from D:/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'
7: from D:/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'
6: from D:/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'
5: from D:/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'
4: from D:/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'
3: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:145:in `<top (required)>'
2: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:145:in `include'
1: from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:12:in `included'
D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:13:in `singleton class': undefined method `alias_method_chain' for #<Class:ActiveRecord::Base> (NoMethodError)
Did you mean? alias_method
The error is because gem adapter for Rails 5x is to obsolete, you have to use this gem 'activerecord-sqlserver-adapter', '~> 5.1', '>= 5.1.6', this may help you.
I have fix this error on the linux system (Ubuntu) and must have gem 'tiny_tds' installed in the system.
if you have gem 'tiny_tds' error installation for linux you should look at this medium_publish
I hope this help you.

Resources