Trying to manually update activesupport by “gem update activesupport”
results in
ERROR: While executing gem … (Gem::GemNotFoundException) could not
find gem activesupport locally or in a repository
Other variations (“gem install rails—version 2.2.2”, "gem install
activesupport", etc.) produce same errors.
A few more data points that may be helpful
“gem -v” returns 1.3.1.
"gem sources" outputs “RubyGems.org | your community gem host and
"gem list—remote" output does include “activesupport (2.2.2)”
Any suggestions on how to resolve or at least debug the issue? I am a
relative novice and am lost.
I've had problems with upgrading gem in the past but they have
involved gem itself and not running it once installed.
Have a look at http://rubyforge.org/forum/forum.php?forum_id=28071 and
try re-installing.
Does 'gem env' give you anything out of the ordinary?
Martin
I am not sure what to look for in the output of "gem env" but here it
is
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
- INSTALLATION DIRECTORY: C:/InstantRails2.0/ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/InstantRails2.0/ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/InstantRails2.0/ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
- GEM PATHS:
- C:/InstantRails2.0/ruby/lib/ruby/gems/1.8
- C:/Documents and Settings/Leonid/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
The only thing that appears a bit strange is the second line in GEM
PATHS because it points to my documents folder while I expected RoR
installation to be entirely self contained under C:/InstantRails2.0. I
have already tried deleting everything (is that the right way to
uninstall RoR?) and unzipped everything again from
InstantRails-2.0.zip. Then I run "gem update --system" again and it
upgraded rubygems to 1.3.1. I also observed that this gem update
command added the second path to GEM PATHS (is it OK?). Now I am back
hitting the same wall; still can not update rails and at a loss.