【问题标题】:Rack Gem::LoadError even though I'm using BundlerRack Gem::LoadError 即使我使用的是 Bundler
【发布时间】:2013-01-17 18:25:59
【问题描述】:

我不明白这是怎么发生的:

$ bundle install
[...]
$ bundle exec rails server
[...] You have already activated rack 1.4.4, but your Gemfile requires rack 1.4.3. Using bundle exec may solve this. (Gem::LoadError)

我不明白怎么可能出现这个错误; Bundler 不能防止这种情况发生吗?

$ gem list rack

*** LOCAL GEMS ***

rack (1.4.4, 1.4.3, 1.4.1)

在 Gemfile 中,我们需要明确列出 UUID 库的 rack,我相信:

gem "rack"

【问题讨论】:

  • 你找到解释了吗?

标签: ruby-on-rails bundler rack


【解决方案1】:

我可以通过简单地卸载我不想要的机架版本来解决这个问题。

gem uninstall rack

Select gem to uninstall:
1. rack-1.4.1
2. rack-1.4.3
3. rack-1.4.4
4. All versions
> 3
Successfully uninstalled rack-1.4.4

【讨论】:

  • 完美!也为我工作:)
猜你喜欢
  • 1970-01-01
  • 2018-04-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-11
  • 1970-01-01
  • 2013-10-04
  • 1970-01-01
相关资源
最近更新 更多