'Ruby on Rails Bundle Gems error Windows 10

After create a new project I exec bundle install --force to install remaining gems

Gem version : 3.3.10

Rails version : 7.0.2.3

After Run rails new

 error: mingw32: clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» desconocida
    error: no se pudo buscar la clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» de forma 
    remota
error: mingw64: clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» desconocida
error: no se pudo buscar la clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» de forma remota
error: msys: clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» desconocida
error: no se pudo buscar la clave «5F944B027F7FE2091985AA2EFA11531AA0AA7F57» de forma remota
error: la base de datos «mingw32» no es válida (base de datos no válida o dañada (firma PGP))
error: la base de datos «mingw64» no es válida (base de datos no válida o dañada (firma PGP))
error: la base de datos «msys» no es válida (base de datos no válida o dañada (firma PGP))
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/nio4r-2.5.8/ext/nio4r
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0 -r
./siteconf20220324-1748-fgnj70.rb extconf.rb

current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/nio4r-2.5.8/ext/nio4r
make DESTDIR\= clean
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/nio4r-2.5.8/ext/nio4r
make DESTDIR\=
make failedNo such file or directory - make

Gem files will remain installed in
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/nio4r-2.5.8 for inspection.
Results logged to
C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/nio4r-2.5.8/gem_make.out

C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:70:in `rescue
in run'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:67:in `run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:44:in `block in
make'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:36:in `each'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:36:in `make'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:63:in
`block in build'
  C:/Ruby31-x64/lib/ruby/3.1.0/tempfile.rb:317:in `open'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:26:in
`build'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:161:in
`build_extension'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:195:in `block
in build_extensions'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:192:in `each'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:192:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/installer.rb:853:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/source/rubygems.rb:204:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/parallel_installer.rb:186:in     
`do_install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/parallel_installer.rb:177:in     
`block in worker_pool'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:62:in
`apply_func'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:54:in
`loop'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:54:in
`process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'

An error occurred while installing nio4r (2.5.8), and Bundler cannot continue.

In Gemfile:
  rails was resolved to 7.0.2.3, which depends on
    actioncable was resolved to 7.0.2.3, which depends on
      nio4r


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bindex-0.8.1/ext/skiptrace
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0 -r
./siteconf20220324-1748-zxg48f.rb extconf.rb
creating Makefile

current directory:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bindex-0.8.1/ext/skiptrace
make DESTDIR\= clean
current directory:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bindex-0.8.1/ext/skiptrace
make DESTDIR\=
make failedNo such file or directory - make

Gem files will remain installed in
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bindex-0.8.1 for inspection.
Results logged to
C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/bindex-0.8.1/gem_make.out

C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:70:in `rescue
in run'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:67:in `run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:44:in `block in
make'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:36:in `each'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:36:in `make'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:63:in
`block in build'
  C:/Ruby31-x64/lib/ruby/3.1.0/tempfile.rb:317:in `open'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:26:in
`build'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:161:in
`build_extension'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:195:in `block
in build_extensions'
  C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:192:in `each'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/ext/builder.rb:192:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/installer.rb:853:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/source/rubygems.rb:204:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/parallel_installer.rb:186:in     
`do_install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/installer/parallel_installer.rb:177:in     
`block in worker_pool'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:62:in
`apply_func'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:54:in
`loop'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:54:in
`process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.10/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'

An error occurred while installing bindex (0.8.1), and Bundler cannot continue.

In Gemfile:
  web-console was resolved to 4.2.0, which depends on
    bindex
         run  bundle binstubs bundler
Could not find gem 'rails (~> 7.0.2, >= 7.0.2.3)' in locally installed gems.
       rails  importmap:install
Could not find gem 'rails (~> 7.0.2, >= 7.0.2.3)' in locally installed gems.
Run `bundle install` to install missing gems.
       rails  turbo:install stimulus:install
Could not find gem 'rails (~> 7.0.2, >= 7.0.2.3)' in locally installed gems.
Run `bundle install` to install missing gems.

After run rails server

Could not find gem 'rails (~> 7.0.2, >= 7.0.2.3)' in locally installed gems.
Run `bundle install` to install missing gems.

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source