我尝试在我的MBP OS 10.8.2上安装Forge。我已经安装了Compass,Susy,Sass和其他宝石,所以我已经习惯了。
然而,安装首先失败说它需要安装Rack。所以,我安装了Rack,它似乎已成功安装。
现在我尝试创建一个Forge项目,但收到此错误:
[~/Documents/.../ONOTW/onotw_wk] $ forge create onotw
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:230:in `activate': can't activate rack (~> 1.3.5, runtime) for ["forge-0.5.0"], already activated rack-1.4.1 for ["sprockets-2.0.4", "forge-0.5.0"] (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/forge:18
有什么建议吗?
答案 0 :(得分:0)
我遇到了同样的问题并找到了解决方案here。基本上你安装了两个版本的机架,需要卸载冲突的版本。
$ sudo gem uninstall rack
Select gem to uninstall:
1. rack-1.3.10
2. rack-1.4.1
3. All versions
$ 2
Successfully uninstalled rack-1.4.1