Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Carl Blakeley
RE: Compiled ok, getting errors [ reply ]  
2007-07-12 09:12
Damian,

Is the RUBYOPTS environment variable set?
e.g. export RUBYOPT=-rubygems

I encountered a similar error a while ago when I forget to set it.

Carl Blakeley

By: Damien McKenna
Compiled ok, getting errors [ reply ]  
2007-07-11 16:42
I've been installing most of my Ruby 1.8.6 bits 'n pieces using MacPorts but after installing odbc_rails and adding the require line to my environment.rb file I'm constantly getting these errors when I try to do any of the rails scripts:

/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:14: undefined method `cattr_accessor' for ActiveRecord::Base:Class (NoMethodError)
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:10
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/odbc-rails-1.4/lib/active_record/connection_adapters/odbc_adapter.rb:27
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
... 6 levels...
from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate.rb:1
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/generate:3

Anyone have any idea what's going on? Thanks.