[Mac OS X 10.4.11] unable to upgrade rubygems

U

Une Bévue

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:
- http://gems.rubyforge.org

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:
- http://gems.rubyforge.org

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 ??
 
R

Rick DeNatale

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)


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!

--=20
Rick DeNatale

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

Une Bévue

Rick DeNatale said:
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)

???
 
R

Rick DeNatale

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.


--=20
Rick DeNatale

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

Une Bévue

Rick DeNatale said:
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 ))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top