[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Please help fixing gems on OSX

andre in LA

8/13/2006 3:39:00 AM

Hi, I am new to OSX and am a beginner rails developer.

I installed ruby 1.84 and ruby gems and rails and for a while
everything worked well.

Recently I tried to update rails using the gems manager and it failed,
producing an error referring to an incorrect date (sorry, didn't save
that error).

Since then I re-installed the gems manager and it fails completely
with:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:52:in
`initialize': uninitialized constant Gem::CommandManager::HelpCommand
(NameError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:46:in
`instance'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:25:in `run'
from /usr/local/bin/gem:23


Is there someting I can do to fix this, or whould I reinstall (a URl
with clear instructions for removal + installation?) or should I
consider reinstalling ruby (how do I remove it?)

Thank you!

-- Andre

12 Answers

Chris Gehlker

8/13/2006 12:29:00 PM

0


On Aug 12, 2006, at 8:40 PM, andre in LA wrote:

> Recently I tried to update rails using the gems manager and it failed,
> producing an error referring to an incorrect date (sorry, didn't save
> that error).
>
> Since then I re-installed the gems manager and it fails completely
> with:

Andre,

If you installed 1.8.4 you already had gems. You didn't need to
install anything else.

If you built Ruby with:

/configure
make
make test
sudo make install

Just do that over.
--
Vegetarians eat Vegetables, Humanitarians frighten me



andre in LA

8/16/2006 12:10:00 AM

0

Please consider my being very new to Mac OSX and BSD Unix.

I installed Ruby 1.8.4 by following a list of shell commands ( I
believe
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...
).

I don't mind downloading/installing everything again; I am just not
sure whether this would fix the issue. Maybe I need to remove the
current ruby installation/configuration files first? If so, are there
instructions somewhere? I googled for uninstalling ruby / fixing gems
but could not find anything useful.

Thank you in advance,

-- Andre

>
> Andre,
>
> If you installed 1.8.4 you already had gems. You didn't need to
> install anything else.
>
> If you built Ruby with:
>
> /configure
> make
> make test
> sudo make install
>
> Just do that over.
> --
> Vegetarians eat Vegetables, Humanitarians frighten me

Chris Gehlker

8/16/2006 2:20:00 AM

0


On Aug 15, 2006, at 5:10 PM, andre in LA wrote:

> Please consider my being very new to Mac OSX and BSD Unix.
>
> I installed Ruby 1.8.4 by following a list of shell commands ( I
> believe
> http://hivelogic.com/articles/2...
> ruby_rails_lighttpd_mysql_tiger
> ).

OK, I would have used .bash_profile rather than .bash_login but OK.
The part about needing to install readln and gems separately is just
mistaken but I can't see how it would do any harm. Using curl to
download a file rather than just clicking on the link also strikes me
as weird but it should work.


One think that is emphasized, but is easy to get get wrong, is
setting your path so that you will be accessing the new Ruby rather
than the old one. Try typing
'which ruby' on the command line. Report back what it says. If it's
not /usr/local/bin/ruby then your path isn't set right. You can also
do 'ruby -v' to make sure you have 10.8.4 or 5.

Finally, you need a file named .inputrc in your home folder that
contains:
set completion-ignore-case On


This has nothing to do with ruby. it just makes it bearable to use
bash on a case insensitive file system with the case sensitive unix
tools.
--
A young idea is a beautiful and a fragile thing. Attack people, not
ideas.


Eric Hodel

8/16/2006 10:18:00 PM

0

On Aug 13, 2006, at 5:28 AM, Chris Gehlker wrote:

> On Aug 12, 2006, at 8:40 PM, andre in LA wrote:
>
>> Recently I tried to update rails using the gems manager and it
>> failed,
>> producing an error referring to an incorrect date (sorry, didn't save
>> that error).
>>
>> Since then I re-installed the gems manager and it fails completely
>> with:
>
> Andre,
>
> If you installed 1.8.4 you already had gems. You didn't need to
> install anything else.

Incorrect. No version of Ruby ships with Rubygems.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...



Chris Gehlker

8/16/2006 10:40:00 PM

0


On Aug 16, 2006, at 3:17 PM, Eric Hodel wrote:

> On Aug 13, 2006, at 5:28 AM, Chris Gehlker wrote:
>
>> On Aug 12, 2006, at 8:40 PM, andre in LA wrote:
>>
>>> Recently I tried to update rails using the gems manager and it
>>> failed,
>>> producing an error referring to an incorrect date (sorry, didn't
>>> save
>>> that error).
>>>
>>> Since then I re-installed the gems manager and it fails completely
>>> with:
>>
>> Andre,
>>
>> If you installed 1.8.4 you already had gems. You didn't need to
>> install anything else.
>
> Incorrect. No version of Ruby ships with Rubygems.

Huh?


Last login: Wed Aug 16 03:32:11 on ttyp1
Welcome to Darwin!
~ $ which gem
/usr/local/bin/gem

Did the elves sneak in and install this on my machine? I know I didn't.


--
Vegetarians eat Vegetables, Humanitarians frighten me



Eric Hodel

8/16/2006 10:57:00 PM

0

On Aug 16, 2006, at 3:40 PM, Chris Gehlker wrote:

> On Aug 16, 2006, at 3:17 PM, Eric Hodel wrote:
>
>> On Aug 13, 2006, at 5:28 AM, Chris Gehlker wrote:
>>
>>> On Aug 12, 2006, at 8:40 PM, andre in LA wrote:
>>>
>>>> Recently I tried to update rails using the gems manager and it
>>>> failed,
>>>> producing an error referring to an incorrect date (sorry, didn't
>>>> save
>>>> that error).
>>>>
>>>> Since then I re-installed the gems manager and it fails completely
>>>> with:
>>>
>>> Andre,
>>>
>>> If you installed 1.8.4 you already had gems. You didn't need to
>>> install anything else.
>>
>> Incorrect. No version of Ruby ships with Rubygems.
>
> Huh?
>
>
> Last login: Wed Aug 16 03:32:11 on ttyp1
> Welcome to Darwin!
> ~ $ which gem
> /usr/local/bin/gem
>
> Did the elves sneak in and install this on my machine? I know I
> didn't.

Somebody downloaded the rubygems tarball and ran sudo ruby setup.rb
on your machine. That's how it got there.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...



Logan Capaldo

8/17/2006 12:08:00 AM

0


On Aug 16, 2006, at 6:40 PM, Chris Gehlker wrote:

>
> On Aug 16, 2006, at 3:17 PM, Eric Hodel wrote:
>
>> On Aug 13, 2006, at 5:28 AM, Chris Gehlker wrote:
>>
>>> On Aug 12, 2006, at 8:40 PM, andre in LA wrote:
>>>
>>>> Recently I tried to update rails using the gems manager and it
>>>> failed,
>>>> producing an error referring to an incorrect date (sorry, didn't
>>>> save
>>>> that error).
>>>>
>>>> Since then I re-installed the gems manager and it fails completely
>>>> with:
>>>
>>> Andre,
>>>
>>> If you installed 1.8.4 you already had gems. You didn't need to
>>> install anything else.
>>
>> Incorrect. No version of Ruby ships with Rubygems.
>
> Huh?
>
>
> Last login: Wed Aug 16 03:32:11 on ttyp1
> Welcome to Darwin!
> ~ $ which gem
> /usr/local/bin/gem
>
> Did the elves sneak in and install this on my machine? I know I
> didn't.
>
>
yes the elves did sneak in. Don't believe me or Eric? Download
ruby-1.8.4.tar.gz, install it to some prefix of your choosing and
grep for gem.

> --
> Vegetarians eat Vegetables, Humanitarians frighten me
>
>
>


Chris Gehlker

8/17/2006 12:18:00 AM

0


On Aug 16, 2006, at 5:07 PM, Logan Capaldo wrote:

> yes the elves did sneak in. Don't believe me or Eric? Download
> ruby-1.8.4.tar.gz, install it to some prefix of your choosing and
> grep for gem.

Well, I actually though of that and confirmed for myself that it
didn't install gem. So i must have done it late one night in a moment
of mental aberration. That makes me believe even more that the op has
a PATH problem.
--
Egotism is the anesthetic that dulls the pain of stupidity.
-Frank William Leahy, football coach (1908-1973)


andre in LA

9/8/2006 10:11:00 AM

0

which gem yelds
/usr/local/bin/gem

Chris Gehlker

9/8/2006 5:12:00 PM

0


On Sep 8, 2006, at 3:16 AM, andre in LA wrote:

> which gem yelds
> /usr/local/bin/gem

That's good. What does 'which ruby' yield?

--
Egotism is the anesthetic that dulls the pain of stupidity.
-Frank William Leahy, football coach (1908-1973)