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

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.

On Fri, Mar 28, 2008 at 9:09 AM, Mike Nicholaides
[email protected] 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

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

Wow!, you were absolutely right!

Thanks a lot!