Unable to upgrade rubygems

what i did :

download locally rubygems-update-1.2.0.gem

then :
~/gems%> sudo gem install -l rubygems-update-1.2.0.gem
Password:
Successfully installed rubygems-update-1.2.0
1 gem installed

however i’ve still the 1.1 version :

~/gems%> gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.0 (1.1.0)
  • RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111)
    [powerpc-darwin8.11.0]
  • INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /opt/local/bin/ruby
  • RUBYGEMS PLATFORMS:
    • ruby
    • powerpc-darwin-8
  • GEM PATHS:
    • /opt/local/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

if i try installing using tar.gz :

~/src/ruby/rubygems-1.2.0%> sudo ruby setup.rb
Password:
setup.rb:108: undefined method `ruby_version’ for Gem:Module
(NoMethodError)

by gem update :
$ sudo gem update -r --system
Updating RubyGems
Updating metadata for 3 gems from http://gems.rubyforge.org/

complete
Nothing to update

however :
$ gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.0 (1.1.0)
  • RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111)
    [powerpc-darwin8.11.0]
  • INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /opt/local/bin/ruby
  • RUBYGEMS PLATFORMS:
    • ruby
    • powerpc-darwin-8
  • GEM PATHS:
    • /opt/local/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

also, i wanted to install amalgalite and get :
~/gems%> sudo gem install -l amalgalite
ERROR: Error installing amalgalite:
amalgalite requires configuration (>= 0.0.5)

however :
$ sudo gem install -r configuration
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR: could not find configuration locally or in a repository

is my rubygems install broken ??

On Tue, Jun 24, 2008 at 7:43 AM, Une Bévue
[email protected] wrote:

however i’ve still the 1.1 version :

~/gems%> gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.0 (1.1.0)

Installing the rubygems-update-1.2.0.gem just installs the upgrading
tool,
you still need to run it with

sudo update_rubygems

THEN you should have 1.2 installed!


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

Rick DeNatale [email protected] wrote:

Installing the rubygems-update-1.2.0.gem just installs the upgrading tool,
you still need to run it with

sudo update_rubygems

THEN you should have 1.2 installed!

unfortunately i got :

$ sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version’ for Gem:Module
(NoMethodError)

???

Rick DeNatale [email protected] wrote:

On another thread you seemed to imply that you are still running Tiger
(10.4.11 IIRC) while I’m running Leopard (10.5.3) although I’d be surprised
if that were your problem.

anyway, thanks for your reply ))

On Tue, Jun 24, 2008 at 8:23 AM, Une Bévue
[email protected] wrote:

THEN you should have 1.2 installed!

unfortunately i got :

$ sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version’ for Gem:Module
(NoMethodError)

???

Hmmmm, I don’t know what to say.

The local install of rubygems-update-1.2.0.gem and then running
update_rubygems is what finally worked for me.

On another thread you seemed to imply that you are still running Tiger
(10.4.11 IIRC) while I’m running Leopard (10.5.3) although I’d be
surprised
if that were your problem.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/