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

···

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

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

do "which gem"
and "sudo which gem"

I'm guessing they're different

Dave

···

On Mar 28, 2008, at 9:09 AM, Mike Nicholaides wrote:

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

Wow!, you were absolutely right!

Thanks a lot!

···

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