PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > About updating gems
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
About updating gems

Réponse
 
LinkBack Outils de la discussion
Vieux 11/03/2008, 15h21   #1
Manuel Montañés
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut About updating gems

Hello everyone,

I'm novice in linux, ruby and rails. I've reinstalled my ubuntu
operative system, the ruby module, and also the rubygems module. After
that I've updated rubygems by this command:

sudo gem update --system

Ruby gem was updated successfully, but now I can't use ruby gem, each
time I write:

sudo gem list -r

or:

sudo gem commands

or something else, I get the follow answer:

/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

I don't know what it means, so, does someone know the meaning? and does
someone know how I can fix it?

Thank you very much.
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 11/03/2008, 15h34   #2
Mark Bush
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: About updating gems

Manuel Montañés wrote:
> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)


This normally suggests the update didn't update your "gem" command, or
else updated one in a different area (perhaps you now have more than one
version of the command installed?).

The gem command is a Ruby script and should have the 2 lines:

require 'rubygems'
require 'rubygems/gem_runner'

I suspect you are missing the 2nd line...

--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 11/03/2008, 16h50   #3
Ken Bloom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: About updating gems

On Tue, 11 Mar 2008 09:21:50 -0500, Manuel Montañés wrote:

> Hello everyone,
>
> I'm novice in linux, ruby and rails. I've reinstalled my ubuntu
> operative system, the ruby module, and also the rubygems module. After
> that I've updated rubygems by this command:
>
> sudo gem update --system
>
> Ruby gem was updated successfully, but now I can't use ruby gem, each
> time I write:
>
> sudo gem list -r
>
> or:
>
> sudo gem commands
>
> or something else, I get the follow answer:
>
> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
>
> I don't know what it means, so, does someone know the meaning? and does
> someone know how I can fix it?
>
> Thank you very much.


You should ideally be unable to run gem update --system on Debian and
Ubuntu. This was discussed here on ruby talk, and also in a Debian bug at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452547. I wouldn't know
whether this change has propagated to ubuntu yet, but you shouldn't run
"gem update --system" when the system package manager is in charge of
which rubygems version is installed on your system.

To fix this, apt-get install --reinstall rubygems, and get rid of any
rubygems stuff you may find in /usr/local

--Ken

--
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/
  Réponse avec citation
Vieux 11/03/2008, 19h01   #4
Tom Cloyd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: About updating gems

Ken Bloom wrote:
> On Tue, 11 Mar 2008 09:21:50 -0500, Manuel Montañés wrote:
>
>
>> Hello everyone,
>>
>> I'm novice in linux, ruby and rails. I've reinstalled my ubuntu
>> operative system, the ruby module, and also the rubygems module. After
>> that I've updated rubygems by this command:
>>
>> sudo gem update --system
>>
>> Ruby gem was updated successfully, but now I can't use ruby gem, each
>> time I write:
>>
>> sudo gem list -r
>>
>> or:
>>
>> sudo gem commands
>>
>> or something else, I get the follow answer:
>>
>> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
>>
>> I don't know what it means, so, does someone know the meaning? and does
>> someone know how I can fix it?
>>
>> Thank you very much.
>>

>
> You should ideally be unable to run gem update --system on Debian and
> Ubuntu. This was discussed here on ruby talk, and also in a Debian bug at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452547. I wouldn't know
> whether this change has propagated to ubuntu yet, but you shouldn't run
> "gem update --system" when the system package manager is in charge of
> which rubygems version is installed on your system.
>
> To fix this, apt-get install --reinstall rubygems, and get rid of any
> rubygems stuff you may find in /usr/local
>
> --Ken
>
>

Ken, thanks. I've posted this problem twice to this list and gotten
nothing, and this morning you give me...well not me exactly...the
answer. I assumed that when you said
"

To fix this, apt-get install --reinstall rubygems, and get rid of any
rubygems stuff you may find in /usr/local

"
you got that backwards. In any case, I removed the rubygems stuff in
/usr/local and THEN did the reinstall. Now for the first time in 4 days
I have working rubygems. Man...this needs to be written down somewhere.
Like in my notes. So shall it be.

Thanks again.

Tom

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~


  Réponse avec citation
Vieux 11/03/2008, 20h33   #5
Ken Bloom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: About updating gems

On Tue, 11 Mar 2008 13:01:53 -0500, Tom Cloyd wrote:

> Ken Bloom wrote:
>> On Tue, 11 Mar 2008 09:21:50 -0500, Manuel Montañés wrote:
>>
>>
>>> Hello everyone,
>>>
>>> I'm novice in linux, ruby and rails. I've reinstalled my ubuntu
>>> operative system, the ruby module, and also the rubygems module. After
>>> that I've updated rubygems by this command:
>>>
>>> sudo gem update --system
>>>
>>> Ruby gem was updated successfully, but now I can't use ruby gem, each
>>> time I write:
>>>
>>> sudo gem list -r
>>>
>>> or:
>>>
>>> sudo gem commands
>>>
>>> or something else, I get the follow answer:
>>>
>>> /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
>>>
>>> I don't know what it means, so, does someone know the meaning? and
>>> does someone know how I can fix it?
>>>
>>> Thank you very much.
>>>
>>>

>> You should ideally be unable to run gem update --system on Debian and
>> Ubuntu. This was discussed here on ruby talk, and also in a Debian bug
>> at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452547. I wouldn't
>> know whether this change has propagated to ubuntu yet, but you
>> shouldn't run "gem update --system" when the system package manager is
>> in charge of which rubygems version is installed on your system.
>>
>> To fix this, apt-get install --reinstall rubygems, and get rid of any
>> rubygems stuff you may find in /usr/local
>>
>> --Ken
>>
>>

> Ken, thanks. I've posted this problem twice to this list and gotten
> nothing, and this morning you give me...well not me exactly...the
> answer. I assumed that when you said
> "
>
> To fix this, apt-get install --reinstall rubygems, and get rid of any
> rubygems stuff you may find in /usr/local
>
> "
> you got that backwards. In any case, I removed the rubygems stuff in
> /usr/local and THEN did the reinstall. Now for the first time in 4 days
> I have working rubygems. Man...this needs to be written down somewhere.
> Like in my notes. So shall it be.


That order's fine too. I figure it could be done in either order.

--Ken

--
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h32.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14973 seconds with 13 queries