RAILS_ENV=production rake db:migrate (rack 1.2.1 not -> 1.0.1)
Added by Mathew Hucks almost 14 years ago
Hi,
I have ruby 1.8.7 and rails 3.0.0 running on my webserver.
I'm following this tutorial: http://blog.ryanharter.com/?p=95
But I'm stuck at this step:
RAILS_ENV=production rake db:migrate
It shows this error:
RubyGem version error: rack(1.2.1 not -> 1.0.1)
- LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
So I don't really understand what I'm doing wrong.
Thx,
Mathew
Replies (4)
RE: RAILS_ENV=production rake db:migrate (rack 1.2.1 not -> 1.0.1)
-
Added by Felix Schäfer almost 14 years ago
Your gem list doesn't match your claim to have rails 3 running on the server. Anyway, the rake db:migrate
sees a rack-1.2.1 somewhere, make sure your gem paths and everything are correct.
RE: RAILS_ENV=production rake db:migrate (rack 1.2.1 not -> 1.0.1)
-
Added by Mathew Hucks almost 14 years ago
Thank you for the reply.
Just wondering where I can see my gem paths? :)
RE: RAILS_ENV=production rake db:migrate (rack 1.2.1 not -> 1.0.1)
-
Added by Felix Schäfer almost 14 years ago
Try gem environment
.
RE: RAILS_ENV=production rake db:migrate (rack 1.2.1 not -> 1.0.1)
-
Added by Mathew Hucks almost 14 years ago
Okay, this is what I see. But I'm not sure if this is correct?
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2009-06-08 patchlevel 173) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/tennisco/ruby/gems
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/tennisco/ruby/gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/tennisco/ruby/gems
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gempath" => []
- "gem" => "--remote --gen-rdoc --run-tests"
- "gemhome" => "/home/tennisco/ruby/gems"
- "rdoc" => "--inline-source --line-numbers"
- REMOTE SOURCES:
- http://rubygems.org/