无法激活机架(〜> 1.4.0,运行时间)已激活rack-1.5.0 [英] Can't activate rack (~> 1.4.0, runtime) already activated rack-1.5.0
问题描述
我了解正在发生的冲突,而且我应该只是为了解决这个问题。卸载我不需要的Rack版本,但是这是事情。我正在开发Koding( http://koding.com ),并且我无权访问系统级宝石。
Rails之前工作过,我安装了mongo gem,删除了它,并安装了mysql2 gem。
bash4.1 $ rails
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:233:in`activate':无法激活机架(〜> 1.4。 0,runtime)for [actionpack-3.2.11,railties-3.2.11
],已经为[rack-ssl-1.3.2,railties-3.2激活rack-1.5.0从/usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in`activate'
from / usr / lib / ruby / site_ruby / 1.8 / rubygems.rb:248:在`每个'
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in`activate'
从/ usr / lib / ruby / site_ruby / 1.8 / rubygems.rb:249:在`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:在`activate'
从/ usr /lib/ruby/site_ruby/1.8/rubygems.rb:1082:in从/ usr / bin / rails获得`
:18
我已经擦干净了我的目录,尝试使用RVM,但仍然没有任何结果。任何想法?
感谢!
使用Bundler解析根据应用程序Gemfile的机架依赖性。
$ bundle exec rails
否则,请删除Rack 1.5.0并重试。
$宝石卸载机架
#选择正确的版本删除
I've been looking for an answer to this for over a day now, and searched StackOverflow thoroughly.
I understand the conflict that's happening, and I should just uninstall the version of Rack I don't need, but here's the thing. I'm developing on Koding (http://koding.com) and I don't have access to system level gems.
Rails was working before, I installed the mongo gem, removed it, and installed 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
I've wiped my directory clean, tried using RVM, and still nothing. Any ideas?
Thanks!
Use Bundler to resolve the Rack dependency according to the app Gemfile.
$ bundle exec rails
Otherwise, delete Rack 1.5.0 and retry.
$ gem uninstall rack
# select the proper version to delete
这篇关于无法激活机架(〜> 1.4.0,运行时间)已激活rack-1.5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!