Unable to activate rack (~> 1.4.0, runtime) rack-1.5.0 is already activated

I've been looking for an answer to this question for over a day now and have researched StackOverflow thoroughly.

I understand the conflict that is going on and I should just uninstall the version of Rack that I don't need, but here's what. I am developing on Koding ( http://koding.com ) and I do not have access to the system level gem.

Rails was working before, I installed mongo gem, uninstalled it and installed the 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 cleared my directory, tried RVM, and still nothing. Any ideas?

Thank!

+3


source to share


1 answer


Use Bundler to resolve Rack dependency according to application Gemfile.

$ bundle exec rails

      



Otherwise, uninstall Rack 1.5.0 and try again.

$ gem uninstall rack
# select the proper version to delete

      

+5


source







All Articles