【问题标题】:Couldn't run rails server! gem 'rails x86-mingw32' not found无法运行 rails 服务器!未找到 gem 'rails x86-mingw32'
【发布时间】:2016-06-27 08:14:43
【问题描述】:

我正在尝试运行 rails 服务器,但出现此错误!

Error message on command prompt

宝石文件

宝石'导轨','4.2.6'

gem 'mysql2', '>= 0.3.13', '

gem 'sdoc', '~> 0.4.0', group: :doc

gem 'tzinfo-data',平台:[:mingw, :mswin, :x64_mingw, :jruby]

【问题讨论】:

  • 你有bundle installed 吗?
  • 我试过了(捆绑安装)!
  • 尝试:gem install rails 4.2.6 然后捆绑更新 rails

标签: ruby-on-rails ruby-on-rails-4


【解决方案1】:

试试这些:

https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo::DataSourceNotFound-Errors

Could not find gem 'rails x86-mingw32'

并尝试删除Gemfile.lock,然后再次删除bundle install

【讨论】:

  • 我还是有同样的问题!
  • 嗯,Rails 曾经在您的机器上运行过吗?在我看来,它就像您在 Windows 上运行。尝试删除Gemfile.lock,然后再次删除bundle install
  • 终于!在这个link 之后工作就像魅力一样。非常感谢@fbelanger
猜你喜欢
  • 2016-02-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-08-21
相关资源
最近更新 更多