[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[Mac OS X 10.4.11] unable to upgrade rubygems

unbewusst.sein

6/24/2008 11:43:00 AM


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.rub...

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.rub.../
....
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.rub...

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.rub.../
ERROR: could not find configuration locally or in a repository

is my rubygems install broken ??
--
Une Bévue
4 Answers

Rick DeNatale

6/24/2008 12:09:00 PM

0

On Tue, Jun 24, 2008 at 7:43 AM, Une B=E9vue
<unbewusst.sein@weltanschauung.com.invalid> wrote:

>
> 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.denh...

unbewusst.sein

6/24/2008 12:24:00 PM

0

Rick DeNatale <rick.denatale@gmail.com> 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)

???
--
Une Bévue

Rick DeNatale

6/24/2008 12:42:00 PM

0

On Tue, Jun 24, 2008 at 8:23 AM, Une B=E9vue
<unbewusst.sein@weltanschauung.com.invalid> wrote:

> Rick DeNatale <rick.denatale@gmail.com> 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)
>
> ???


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.denh...

unbewusst.sein

6/24/2008 12:47:00 PM

0

Rick DeNatale <rick.denatale@gmail.com> 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 ))
--
Une Bévue