0

我尝试在我的 MBP 操作系统 10.8.2 上安装Forge 。我已经安装了 Compass、Susy、Sass 和其他 gem,所以我已经习惯了。

但是,安装首先失败,说它需要安装 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

有什么建议么?

4

1 回答 1

0

我遇到了同样的问题,并在这里找到了解决方案。本质上,您安装了两个版本的机架,需要卸载冲突的版本。

$ 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
于 2013-07-17T06:06:15.430 回答