P
Phrogz
I hate that I don't understand why this is failing, and have to turn to
the list for help.
The problem is that rubygems can't find files that it itself installed.
In an attempt to fix things, I just deleted my entire c:\ruby
directory, deleted all ruby-related environment variables, and re-ran
the 184-20 one-click installer. No help.
See the following session:
C:\Documents and Settings\gavin.kistner>gem -v
0.9.0
C:\Documents and Settings\gavin.kistner>gem install usage
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency SimpleTrace? [Yn]
Successfully installed usage-0.0.4
Successfully installed SimpleTrace-0.0.1
C:\Documents and Settings\gavin.kistner>gem list Usage
*** LOCAL GEMS ***
usage (0.0.4)
This module implements a simple no thought command line option
parser
C:\Documents and Settings\gavin.kistner>gem env
Rubygems Environment:
- VERSION: 0.9.0 (0.9.0)
- INSTALLATION DIRECTORY: C:/ruby/lib/ruby/gems/1.8
- GEM PATH:
- C:/ruby/lib/ruby/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org
C:\Documents and Settings\gavin.kistner>ruby -e 'require_gem "Usage"'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem Usage (>= 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 -e:1
C:\Documents and Settings\gavin.kistner>ruby -ve 'p ENV["GEM_HOME"]'
ruby 1.8.4 (2006-04-14) [i386-mswin32]
nil
C:\Documents and Settings\gavin.kistner>set
GEM_HOME=c:\ruby\lib\ruby\gems\1.8\gems
C:\Documents and Settings\gavin.kistner>ruby -e 'p ENV["GEM_HOME"];
require_gem "Usage"'
"c:\\ruby\\lib\\ruby\\gems\\1.8\\gems"
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem Usage (>= 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'
I've also tried GEM_HOME settings of:
c:\ruby
c:\ruby\lib
c:\ruby\lib\ruby
c:\ruby\lib\ruby\gems
c:\ruby\lib\ruby\gems\1.8
c:\ruby\lib\ruby\gems\1.8\gems
all to no avail.
(I wish the rubygems documentation would provide examples of the
various environment variables.)
the list for help.
The problem is that rubygems can't find files that it itself installed.
In an attempt to fix things, I just deleted my entire c:\ruby
directory, deleted all ruby-related environment variables, and re-ran
the 184-20 one-click installer. No help.
See the following session:
C:\Documents and Settings\gavin.kistner>gem -v
0.9.0
C:\Documents and Settings\gavin.kistner>gem install usage
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency SimpleTrace? [Yn]
Successfully installed usage-0.0.4
Successfully installed SimpleTrace-0.0.1
C:\Documents and Settings\gavin.kistner>gem list Usage
*** LOCAL GEMS ***
usage (0.0.4)
This module implements a simple no thought command line option
parser
C:\Documents and Settings\gavin.kistner>gem env
Rubygems Environment:
- VERSION: 0.9.0 (0.9.0)
- INSTALLATION DIRECTORY: C:/ruby/lib/ruby/gems/1.8
- GEM PATH:
- C:/ruby/lib/ruby/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org
C:\Documents and Settings\gavin.kistner>ruby -e 'require_gem "Usage"'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem Usage (>= 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 -e:1
C:\Documents and Settings\gavin.kistner>ruby -ve 'p ENV["GEM_HOME"]'
ruby 1.8.4 (2006-04-14) [i386-mswin32]
nil
C:\Documents and Settings\gavin.kistner>set
GEM_HOME=c:\ruby\lib\ruby\gems\1.8\gems
C:\Documents and Settings\gavin.kistner>ruby -e 'p ENV["GEM_HOME"];
require_gem "Usage"'
"c:\\ruby\\lib\\ruby\\gems\\1.8\\gems"
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem Usage (>= 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'
I've also tried GEM_HOME settings of:
c:\ruby
c:\ruby\lib
c:\ruby\lib\ruby
c:\ruby\lib\ruby\gems
c:\ruby\lib\ruby\gems\1.8
c:\ruby\lib\ruby\gems\1.8\gems
all to no avail.
(I wish the rubygems documentation would provide examples of the
various environment variables.)