在这台机器上可用的宝石中找不到宝石'tzinfo-data(> = 0)x86-mingw32'(Bundler :: GemNotFound)

时间:2015-05-28 20:01:59

标签: ruby-on-rails ruby rubygems rubymine

Ruby on Rails的新手我使用RubyMine创建了一个新项目

  1. Windows 7计算机
  2. Ide:RubyMine
  3. Ruby版本:2.1
  4. Rails版本:4.1.8
  5. 我在构建新创建的项目后遇到了这个问题。

    "C:\Program Files (x86)\JetBrains\RubyMine 7.0.4\bin\runnerw.exe" C:\RailsInstaller\Ruby2.1.0\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:/Users/UserX/RubymineProjects/SampleWeb/bin/rails" server -b 127.0.0.1 -p 3000 -e development
        C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/resolver.rb:357:in `resolve': Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/resolver.rb:164:in `start'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/resolver.rb:129:in `resolve'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/definition.rb:193:in `resolve'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/definition.rb:132:in `specs'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/definition.rb:177:in `specs_for'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/definition.rb:166:in `requested_specs'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/environment.rb:18:in `requested_specs'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:13:in `setup'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler.rb:121:in `setup'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/setup.rb:17:in `<top (required)>'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
            from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
            from C:/Users/UserX/RubymineProjects/ZepMed/config/boot.rb:4:in `<top (required)>'
            from C:/Users/UserX/RubymineProjects/ZepMed/bin/rails:3:in `require_relative'
            from C:/Users/UserX/RubymineProjects/ZepMed/bin/rails:3:in `<top (required)>'
            from -e:1:in `load'
            from -e:1:in `<main>'
    
        Process finished with exit code 1
    

    我通过在安装目录中添加ssl_certificate来关注此问题solution,但问题仍然存在。

1 个答案:

答案 0 :(得分:1)

TZInfo-data gem版本1.2015.4存在某种问题,所以我降级了1.2015.3的版本。运行应用程序,它又开始工作了。