简体   繁体   English

在 Gemfile 中列出的任何 gem 源中都找不到 gem 'tzinfo-data x86-mingw32'。 (Bundler::GemNotFound)

[英]Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)

Im super new to rails development and am following a basic rails tutorial to get started.我是 Rails 开发的新手,正在学习基本的 Rails 教程以开始使用。 I have successfully install rails and ruby on my windows 10, but for some reason the server does not work.我已经在 Windows 10 上成功安装了 rails 和 ruby​​,但由于某种原因服务器无法工作。 I have tried different versions of rails and every time I get a different error.我尝试了不同版本的 rails,每次都遇到不同的错误。 Here is the error message I keep receiving.这是我不断收到的错误消息。 Any help will be extremely be appreciated.任何帮助将不胜感激。 Thank you.谢谢你。

$ rails s $ 导轨

C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:396:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in C:/RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:396:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in each' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in verify_gemfile_dependencies_are_found!' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:212:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in each' from C: /RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:366:in verify_gemfile_dependencies_are_found!' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:212:in verify_gemfile_dependencies_are_found!' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:212:in start' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:191:in resolve' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:235:in resolve' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:159:in specs' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:218:in specs_for' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:207:in requested_specs' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/runtime.rb:109:in block in definition_method' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/runtime.rb:21:in setup' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler.rb:101:in verify_gemfile_dependencies_are_found!' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:212:in start' from C:/RailsInstaller/Ruby2.3.​​3 /lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:191:in resolve' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:235:in resolve' 来自 C:/RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3 /lib/bundler/definition.rb:159:in specs' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:218:in specs_for' 来自 C:/RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/definition.rb:207:in requests_specs requested_specs' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/runtime.rb:109:in块 in definition_method' 来自 C:/RailsInstaller/Ruby2.3.​​3/lib /ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/runtime.rb:21:in setup' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler.rb:101:in setup' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler.rb:101:in setup' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/setup.rb:19:in <top (required)>' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in require' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in rescue in require' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in require' from C:/Sites/myarticles/config/boot.rb:3:in <top (required)>' from bin/rails:3:in require_relative' from bin/rails:3:in `' setup' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler.rb:101:in setup' 来自 C:/RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/setup.rb:19 :in <top (required)>' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in require' from C:/RailsInstaller/Ruby2.3.​​3/ lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:在rescue in require' from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in require' from C:/Sites/myarticles/config/boot.rb:3:in <top (required)>' from bin/rails:3:in require_relative' from bin/rails:3:in `'

Here is the Gemfile这是 Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.3'
# Use sqlite3 as the database for Active Record
gem 'mysql2'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Please do following, but share Gemfile also, as error message is saying Gem not found.请执行以下操作,但也共享 Gemfile,因为错误消息说 Gem not found。

First install ssl_certificate into your ssl_certificate directory of railsinstller.首先将 ssl_certificate 安装到 railsinstller 的 ssl_certificate 目录中。 You can following this url Now use following command to update您可以关注此 url现在使用以下命令进行更新

gem update --system

Now go to your rails project folder and run following command现在转到您的 rails 项目文件夹并运行以下命令

bundle install

Also check you have installed node, npm and yarn.还要检查你是否安装了 node、npm 和 yarn。 If still error persist make sure all installation of node done.如果仍然存在错误,请确保节点的所有安装都已完成。

暂无
暂无

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

相关问题 在 Gemfile 中列出的任何 gem 源中找不到 gem 'puma (= 3.9.1) x64-mingw32' - Could not find gem 'puma (= 3.9.1) x64-mingw32' in any of the gem sources listed in your Gemfile 在这台机器上可用的宝石中找不到宝石&#39;tzinfo-data(&gt; = 0)x86-mingw32&#39;。 运行bundle install以安装缺少的gem - could not find gem 'tzinfo-data (>=0) x86-mingw32' in the gems available on this machine. Run bundle install to install missing gems 在Gemfile中列出的任何gem资源中找不到gem&#39;jquery-rails(&gt; = 0,运行时)&#39;。 尝试启动Rails服务器 - Could not find gem 'jquery-rails (>= 0, runtime)' in any of the gem sources listed in your Gemfile. Trying to start rails server 找不到gem&#39;rails x86-mingw32&#39; - Could not find gem 'rails x86-mingw32' 在您的 Gemfile 中列出的任何 gem 源中找不到 gem 'nested-scaffold x86_64-linux' - Could not find gem 'nested-scaffold x86_64-linux' in any of the gem sources listed in your Gemfile 发布我的gem时出现此错误:“在您的Gemfile中列出的任何gem来源中都找不到gem&#39;uix_validations(〜&gt; 0.5.0)&#39;。” - I got this error when I publish my gem: “Could not find gem 'uix_validations (~> 0.5.0)' in any of the gem sources listed in your Gemfile.” 找不到gem tzinfo数据 - Could not find gem tzinfo-data 运行 rails 服务器时找不到 gem &#39;rails (= 4.2.5) x86-mingw32&#39; - Could not find gem 'rails (= 4.2.5) x86-mingw32' when running rails server 无法运行Rails服务器,找不到Gem&#39;rail(4.2.5.1)x86-mingw32&#39; - Can't Run Rails Server, Could Not Find Gem 'rails(4.2.5.1) x86-mingw32' 在Gemfile中列出的或本机上可用的任何宝石来源中找不到宝石&#39;pg(= 0.12.4)红宝石&#39; - Could not find gem 'pg (= 0.12.4) ruby' in any of the gem sources listed in your Gemfile or available on this machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM