无法在任何来源中找到thread_safe-0.3.0

时间:2014-03-19 15:22:03

标签: ruby-on-rails multithreading

我在rails应用程序中运行bundle install时遇到此错误,

我认为最新版本是0.2.0 ......有人可以帮我解决这个问题吗?

bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find thread_safe-0.3.0 in any of the sources

4 个答案:

答案 0 :(得分:38)

我遇到了同样的问题。

现在已经从Ruby Gems中获取了thread_safe gem版本0.3.0:http://rubygems.org/gems/thread_safe/versions

因此,您可能希望在Gemfile中指定其他版本,或者可以将Gemfile直接指向GitHub。

我在Gemfile中解决了这一行的问题:

gem 'thread_safe', '0.2.0'

答案 1 :(得分:15)

正如dreamnid所说,“看起来他们几个小时前就把0.3.0版本用来解决问题build issue”。

尝试运行gem uninstall thread_safe(删除已取消的版本),然后运行bundle update以安装正确的版本。

答案 2 :(得分:8)

运行:

bundle update

通过以下消息解决了我的问题:"使用thread_safe 0.2.0(0.3.0)"

答案 3 :(得分:4)

我遇到了同样的问题。我接受了mat_jack1的建议,但我也运行了“bundle update thread_safe”。这解决了我的问题。

相关问题