我想运行一个带有oauth演示的程序,它给出了这个错误:
/Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/spec_set.rb:88:in `materialize': Could not find crack-0.1.8 in any of the sources (Bundler::GemNotFound)
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `map!'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `materialize'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/definition.rb:107:in `specs'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/definition.rb:152:in `specs_for'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/definition.rb:141:in `requested_specs'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/environment.rb:23:in `requested_specs'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler/runtime.rb:11:in `setup'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.22/lib/bundler.rb:110:in `setup'
from example.rb:2
我发现运行它需要破解-0.1.8。当我运行gem list
时,我发现我电脑中的破解版本是0.3.1,那么我如何解决这个问题呢?(新版本与旧版本不兼容?我很困惑。)
发布于 2012-07-01 01:06:41
只需在Gemfile
中指定此gem的版本
gem crack, '0.1.8'
发布于 2012-07-01 02:00:50
运行bundle install
,它将按照Gems文件中的指定安装所需的所有Gems的正确版本。在那之后,它应该可以正常运行。
发布于 2012-07-03 18:12:28
Rubygems.org上提供了Crack 0.1.8
:
使用
gem install crack -v 0.1.8
应该可以安装您需要的版本。
https://stackoverflow.com/questions/11275867
复制相似问题