'kernel_require.rb:15:in `require': cannot load such file -- 3.0/pg_ext (LoadError)
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require': cannot load such file -- 3.0/pg_ext (LoadError)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-0.18.4-x64-mingw32/lib/pg.rb:14:in `rescue in <main>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-0.18.4-x64-mingw32/lib/pg.rb:3:in `<main>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:60:in `block (2 levels) in require'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:55:in `each'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:55:in `block in require'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:44:in `each'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler/runtime.rb:44:in `require'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/bundler.rb:176:in `require'
from D:/Onl_course/Ruby/David_Battersby/instagram-clone/config/application.rb:7:in `<main>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:137:in `block in perform'
from <internal:kernel>:90:in `tap'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:134:in `perform'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/command/base.rb:87:in `perform'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/command.rb:48:in `invoke'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands.rb:18:in `<main>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Solution 1:[1]
From what I understand, on Unix there is a misleading error of "File does not exist" when loading a shared module, when dependencies of such a shared module don't exist. It may also be a case here.
An obvious dependency that's missing is Postgresql client libraries. You should install Postgresql to attempt to solve this problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hmdne |
