From: Gaech Date: 2006-09-25T23:20:10+09:00 Subject: Re: How can I fix this? Gaech wrote: > Tom Ward wrote: > > OK, you need to get the activerecord gem, using: > > > > gem install activerecord --include-dependencies > > > > Tom > > > > On 25/09/06, Gaech wrote: > > > > > > Tom Ward wrote: > > > > On 25/09/06, Gaech wrote: > > > > > Here is screenshot from my console > > > > > > > > > >"C:\rubyclr\Samples\RssReader\rssreader.rb" > > > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in > > > > > `report_activate_error': Could not find RubyGem activerecord (>= 0.0.0) > > > > > (Gem::LoadError) > > > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:188:in > > > > > `activate' > > > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:66:in > > > > > `active_gem_with_options' > > > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:59:in > > > > > `require_gem' > > > > > from C:/rubyclr/Src/Ruby/winforms.rb:6 > > > > > from > > > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > `gem_original_require' > > > > > from > > > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > `require' > > > > > from C:/rubyclr/Samples/RssReader/rssreader.rb:1 > > > > > > > > Strange, the winforms code seems to require activerecord. I'm not an > > > > expert oin the rubyclr internals, but that seems strange to me. > > > > > > > > Anyway, to get it to work, install the rails gems (gem install rails > > > > --include-dependencies) and try again. You can also test to see if > > > > rubyclr is installed successfully by typing: > > > > > > > > ruby -e "require 'rubyclr'" > > > > > > > > If this produces an error, rubyclr is not working correctly. > > > > > > > > Tom > > > > > > >ruby -e "require 'rubyclr'" > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in > > > `report_activate_error': Could not find RubyGem activerecord (>= 0.0.0) > > > (Gem::LoadError) > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:188:in > > > `activate' > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:66:in > > > `active_gem_with_options' > > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:59:in > > > `require_gem' > > > from C:/rubyclr/Src/Ruby/rubyclr.rb:7 > > > from > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > from > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > from -e:1 > > > > > > > > > > > I type in command prompt > >ruby -e "require 'rubyclr'" > > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in > `alias_const_missing': uninitialized constant IDataErrorInfo > (NameError) > from C:/rubyclr/Src/Ruby/core.rb:258:in `const_missing' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in > `send' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in > `const_missing' > from C:/rubyclr/Src/Ruby/databinding.rb:30 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require' > from C:/rubyclr/Src/Ruby/rubyclr.rb:21 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from -e:1 >gem install activerecord --include-dependencies Need to update 0 gems from http://gems.rubyforge.org complete Successfully installed activerecord-1.14.4 Installing ri documentation for activerecord-1.14.4... Installing RDoc documentation for activerecord-1.14.4...