一天多来,我一直在寻找这个问题的答案,并彻底搜索了 StackOverflow。
我了解正在发生的冲突,我应该卸载我不需要的 Rack 版本,但事情就是这样。我正在 Koding ( http://koding.com ) 上进行开发,但我无法访问系统级 gem。
Rails 之前工作过,我安装了 mongo gem,将其删除,然后安装了 mysql2 gem。
bash4.1$ rails
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't activate rack (~> 1.4.0, runtime) for ["actionpack-3.2.11", "railties-3.2.11"
], already activated rack-1.5.0 for ["rack-ssl-1.3.2", "railties-3.2.11"] (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `
from /usr/bin/rails:18
我已将目录擦干净,尝试使用 RVM,但仍然一无所获。有任何想法吗?
谢谢!