Problem with rails 2.0

When I run rails “–version” I get this:

rails --version

/usr/lib/ruby/site_ruby/1.8/rubygems.rb:379:in report_activate_error': Could not find RubyGem activeresource (= 2.0.2) (Gem::LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:311:inactivate’
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:337:in activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:336:ineach’
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:336:in activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:65:inactive_gem_with_options’
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem’
from /usr/bin/rails:18

System OS = CentOS-5.1

Ruby = ruby-1.8.5-5.el5_1.1

Installed Gems:

gem list

*** LOCAL GEMS ***

actionmailer (2.0.2, 2.0.1, 1.3.6, 1.3.5)
actionpack (2.0.2, 2.0.1, 1.13.6, 1.13.5)
actionwebservice (1.2.6, 1.2.5)
activerecord (2.0.2, 2.0.1, 1.15.6, 1.15.5)
activesupport (2.0.2, 2.0.1, 1.4.4)
archive-tar-minitar (0.5.1)
color (1.4.0)
fastercsv (1.2.3)
ferret (0.11.6, 0.11.5, 0.11.4)
goldberg_generator (0.2.1)
hoe (1.4.0, 1.3.0)
loaded_plugins (0.1.2)
mailfactory (1.2.3)
mime-types (1.15)
paginator (1.1.0)
pdf-writer (1.1.7)
plugin_migrations (0.1.2)
rails (2.0.2, 2.0.1, 1.2.6, 1.2.5)
rake (0.8.1, 0.7.3)
RedCloth (3.0.4)
rspec (1.1.1, 1.1.0, 1.0.8)
ruby-postgres (0.7.1.2006.04.06)
rubyforge (0.4.4)
rubygems-update (1.0.1, 0.9.5, 0.9.4)
rubyzip (0.9.1)
sources (0.0.1)
transaction-simple (1.4.0)
vim-ruby (2007.05.07)
ZenTest (3.7.1, 3.6.1)

Anyone have any ideas on how to fix this? Is there a missing directory
in the default search path in the new Gem 1.0.1 similar to the problem
in 0.9.5?

James B. wrote:

gem environment

RubyGems Environment:

  • RUBYGEMS VERSION: 1.0.1 (1.0.1)
  • RUBY VERSION: 1.8.5 (2006-08-25) [i386-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

James B. wrote:
Is it possible to install rails 2 WITHOUT activeresource? Because that
seems to be the problem.

Frederick C. wrote:

… depends how you did it.

gem update --include-dependencies

Have you tried installing the missing gems?

Yes, that is how I discovered that activeresource 2.0.2 had not been
installed. Odd.

Yeah, funny how rubygems seems to update only the gems that are
installed.
If the updated gems have new dependencies, it doesn’t seem to grab them.


Ryan B.

Feel free to add me to MSN and/or GTalk as this email.

On 27 Dec 2007, at 16:06, James B. wrote:

James B. wrote:
Is it possible to install rails 2 WITHOUT activeresource? Because
that
seems to be the problem.

depends how you did it. Have you tried installing the missing gems?

Fred