安装celluloid gem时出现错误

11

最近我将我的Rails版本更新到4.2.3,将Ruby版本更新到ruby-2.2.3。之后,当我执行bundle时,会出现以下错误:

$ bundle
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Could not find celluloid-0.16.1 in any of the sources

你能帮助我吗?

1个回答

40

celluloid gem 的版本 0.16.1撤下了,不再可用。您需要将其降级到 0.16.0 或升级到 0.17.x。运行以下命令:

bundle update celluloid

1
您,先生,救了我的一天 ;) - sameera207
@spickermann,我已经尝试了这个解决方案,但仍然没有帮助,Heroku仍然会出现相同的错误。 - Qubaish Bhatti
@spickermann,http://stackoverflow.com/questions/32312071/issue-while-deploying-ruby-app-on-heroku-bundler-failed这里我定义了我的问题,你标记为重复。区别在于,这里错误是在bundle install时出现的,而在我的情况下,错误是在部署应用程序到Heroku时出现的。谢谢。 - Qubaish Bhatti
@QubaishBhatti: 这真的是同样的错误(在任何源中找不到celluloid-0.16.1)吗?如果是,请确保在运行bundle update celluloid后,您的Gemfile.lock中当前版本的celluloid不是0.16.1,并且您提交了更改的Gemfile.lock到git。 - spickermann
@spickermann,是的,你说得对,我的gemfile.lock文件中有celluloid版本0.16.1。谢谢,我解决了我的问题 :) - Qubaish Bhatti

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接