[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

"gem list" and "sudo gem list" yield different results

Mike Nicholaides

3/28/2008 2:10:00 PM

Hey there,

"sudo gem list" shows all my gems, while
"gem list" shows no gems.

As a result, I have to start mongrel with "sudo script/server", because
without sudo, it can't find my gems.

Any clues? Is this a permissions thing?

I'm doing this on a centos server.
--
Posted via http://www.ruby-....

3 Answers

Lyle Johnson

3/28/2008 2:16:00 PM

0

On Fri, Mar 28, 2008 at 9:09 AM, Mike Nicholaides
<mike.nicholaides@gmail.com> wrote:

> "sudo gem list" shows all my gems, while
> "gem list" shows no gems.

Sounds to me that you have more than one Ruby/RubyGems installation.
You might want to compare the results of typing:

gem environment

with the results of typing:

sudo gem environment

Hope this helps,

Lyle

Dave Thomas

3/28/2008 2:26:00 PM

0


On Mar 28, 2008, at 9:09 AM, Mike Nicholaides wrote:
> "sudo gem list" shows all my gems, while
> "gem list" shows no gems.


do "which gem"
and "sudo which gem"

I'm guessing they're different


Dave

Mike Nicholaides

3/28/2008 2:29:00 PM

0

Wow!, you were absolutely right!

Thanks a lot!

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