On Fri, Nov 20, 2009 at 12:51 AM, mikej <[email protected]> wrote:

> I recently updated my gems and gem command with:
>
> sudo gem update --system && gem update
>
> gem list
> showed no local gems
>
> I installed a new gem
> gem list showed just the newly installed gem.
>
> My apps work fine (as far as I can tell).
>
> gem env
>
>  - GEM PATHS:
>     - /usr/lib64/ruby/gems/1.8
>     - /home/username/.gem/ruby/1.8
>
> /usr/lib64/ruby/gems/1.8/gems
> 2 gems listed
>
> /home/mikej1968/.gem/ruby/1.8/gems
> 0 gems listed
> I think this folder is created when I used install gem instead of SUDO
> install gem (?)
>
> My gems are in:
> /usr/lib/ruby/gems/1.8/gems
>
> Other info:
> which ruby
> /usr/bin/ruby
> which gem
> /usr/bin/gem
>
> What is the best way to keep everything running smoothly and to be
> able to list gems?
>
> Many thanks,
>
> Mike
>
>
Mike, I would recommend installing all gems to a single location.  When
I use Ruby Version Manager (RVM), I tend to use the following:

gem install <gem-name>

When I install gems for the system version of Ruby, I tend to use the
following:

sudo gem install <gem-name>

In short, one needs to be consistent in your installation practice.

Good luck,

-Conrad


> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to