I used InstantRails 2.0 to install RoR on Win XP SP3. It brought rails
2.0.2 and I am having problems updating to rails 2.2.2
After initial installation I run “gem update—system” w/o a problem.
However the subsequent “gem update rails” results in
ERROR: While executing gem … (Gem::InstallError) rails requires
activesupport (= 2.2.2, runtime)
Trying to manually update activesupport by “gem update activesupport”
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 “http://gems.rubyforge.org/” 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.
What does 'gem list --local' return?
I presume you are doing this with administrative rights?
Here is the output of "gem list --local"
*** LOCAL GEMS ***
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
Does 'gem env' give you anything out of the ordinary?
I am not sure what to look for in the output of "gem env" but here it
- 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:
- GEM PATHS:
- 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:
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.
Thanks for trying to help,