[OSM-dev] Rails environment on dev

Nick Black nickblack1 at gmail.com
Thu Dec 27 14:47:50 GMT 2007


When running:

$ rake db:migrate --trace

>From a fresh svn checkout on dev I see this error:

(in /home/nickb/rails_port)
rake aborted!
undefined method `gem' for main:Object
/home/nickb/rails_port/config/boot.rb:29
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/home/nickb/rails_port/Rakefile:4
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1727:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1726:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1710:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/bin/rake:18:in `load'
/usr/bin/rake:18

Rails versions: rails (1.2.3, 1.2.2)
gem: 0.8.11

This looks like its because of incomabitibilities with the rails
version and the rubygems version.  Is anyone else successfully using a
rails environment on Dev?  If so, what is the trick?

Cheers,

Nick Black
--------------------------------
http://www.blacksworld.net




More information about the dev mailing list