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 ??
···
--
Une Bévue