简体   繁体   English

kernel_require.rb:15:in `require': 无法加载此类文件 -- 3.0/pg_ext (LoadError)

[英]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'

source "https://rubygems.org" git_source(:github) { |repo|来源 "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } “https://github.com/#{repo}.git”}

ruby "3.0.3" gem "rails", "~> 7.0.1" gem "sprockets-rails" gem 'pg' gem "puma", "~> 5.0" gem 'devise' gem "importmap-rails" gem "turbo-rails" gem "stimulus-rails" gem "jbuilder" gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] gem "bootsnap", require: false gem "sassc-rails" gem 'bootstrap', '~> 5.1.3' group:development, :test do gem "debug", platforms: %i[ mri mingw x64_mingw ] end group:development do gem "web-console" end group:test do gem "capybara" gem "selenium-webdriver" gem "webdrivers" end ruby "3.0.3" gem "rails", "~> 7.0.1" gem "sprockets-rails" gem 'pg' gem "puma", "~> 5.0" gem 'devise' gem "importmap-rails" gem" turbo-rails" gem "stimulus-rails" gem "jbuilder" gem "tzinfo-data",平台:%i[ mingw mswin x64_mingw jruby ] gem "bootsnap",要求:false gem "sassc-rails" gem 'bootstrap', '~> 5.1.3' group:development, :test do gem "debug", 平台: %i[ mri mingw x64_mingw ] end group:development do gem "web-console" end group:test do gem "capybara" gem" selenium-webdriver" gem "webdrivers" 结束

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.据我了解,在 Unix 上,当不存在此类共享模块的依赖项时,加载共享模块时会出现“文件不存在”的误导性错误。 It may also be a case here.这里也可能是一个案例。

An obvious dependency that's missing is Postgresql client libraries.缺少的一个明显依赖项是 Postgresql 客户端库。 You should install Postgresql to attempt to solve this problem.您应该安装 Postgresql 以尝试解决此问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Active_support / dependencies.rb:247`require':无法加载此类文件 - 2.1 / pg_ext(LoadError) - Active_support/dependencies.rb:247 `require': cannot load such file — 2.1/pg_ext (LoadError) lib / bootsnap / load_path_cache / core_ext / kernel_require.rb:21:在&#39;require&#39;中:无法加载此类文件— sass(LoadError) - lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': cannot load such file — sass (LoadError) ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require&#39;: 无法加载此类文件 -- selenium-webdriver (LoadError) - ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- selenium-webdriver (LoadError) kernel_require.rb:无法加载此类文件 - kernel_require.rb: cannot load such file 软件包安装错误后,kernel_require.rb:55:在&#39;require&#39;中:无法加载此类文件—捆绑程序(LoadError) - after bundle install error kernel_require.rb:55:in `require': cannot load such file — bundler (LoadError) C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:在&#39;require&#39;中:无法加载此类文件-watir(LoadError) - C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file — watir (LoadError) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require': 无法加载此类文件 -- sass - lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require': cannot load such file -- sass Rails/Ruby/Postgres - LoadError 无法加载此类文件 -- pg_ext - Rails/Ruby/Postgres - LoadError cannot load such file -- pg_ext Ruby错误kernel_require.rb:55:在&#39;require&#39;中:无法加载此类文件— ec2 / amitools / version - Ruby error kernel_require.rb:55:in `require': cannot load such file — ec2/amitools/version 无法加载pg_ext文件 - Cannot load pg_ext file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM