我已按照在 Mountain Lion ( sudo gem install vmc
) 上安装 VMC 的简单说明进行操作,但出现以下错误:
$ vmc
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:230:in `activate': can't activate multi_json (~> 1.4.0, runtime) for ["vmc-0.4.7"], already activated multi_json-1.5.0 for ["cfoundry-0.4.19", "vmc-0.4.7"] (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
from /usr/bin/vmc:18
谁能帮我诊断一下?这是安装的 Ruby 版本的问题吗?我真的不想为了这件事而盲目地跳过箍来升级 Ruby。我尝试使用 安装旧版本的多 json gem install multi_json -v 1.4.0
,但这似乎没有任何区别。