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