1

在 OSX 上安装 ruby​​ 和 rails 后出现机架冲突错误。

sudo rails new test -T
/Library/Ruby/Site/1.8/rubygems/specification.rb:1990:in `raise_if_conflicts': Unable to activate actionpack-3.2.13, because rack-1.5.2 conflicts with rack (~> 1.4.5) (Gem::LoadError)
    from /Library/Ruby/Site/1.8/rubygems/specification.rb:1163:in `activate'
    from /Library/Ruby/Site/1.8/rubygems/specification.rb:1199:in `activate_dependencies'
    from /Library/Ruby/Site/1.8/rubygems/specification.rb:1185:in `each'
    from /Library/Ruby/Site/1.8/rubygems/specification.rb:1185:in `activate_dependencies'
    from /Library/Ruby/Site/1.8/rubygems/specification.rb:1167:in `activate'
    from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_gem.rb:48:in `gem'
    from /usr/bin/rails:18
4

1 回答 1

4

请试试这个: gem uninstall rack

Select gem to uninstall:
1. rack-1.4.5
2. rack-1.5.2
3. All versions 
>2
Successfully uninstalled rack-1.5.2
于 2013-06-12T09:43:56.647 回答