Hi, I dont understand these lines . I was getting these warnings whenever i intall or uninstall a new gem . WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and /usr/bin aren''t both writable. WARNING: You don''t have /home/srinath/.gem/ruby/1.8/bin in your PATH, gem executables will not run. could any one please explain me !! i had gem version 1.3.1 installed thanks, sri.. -- Posted via http://www.ruby-forum.com/.
It looks like you don''t have rights to install the gems. Become root and then install the gems.If you are installing them to your home directory make sure you have full write privileges on your .gem directory chmod -R 775 .gem would do the trick Trausti On Thu, Aug 6, 2009 at 11:03 AM, Srinath A. < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > I dont understand these lines . I was getting these warnings > whenever i intall or uninstall a new gem . > > WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and > /usr/bin aren''t both writable. > WARNING: You don''t have /home/srinath/.gem/ruby/1.8/bin in your PATH, > gem executables will not run. > > > > could any one please explain me !! > > i had gem version 1.3.1 installed > > > > thanks, > sri.. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
When you install a gem it will try to install the gem in the ruby directory like /usr/local/.... if you do not have write permissions to do this it will install the gem in your home dirctory under .gem. If you want to install the gem correctly you will have to use sudo first. BTW installing the gems in your home directory will also work but like the error message says you will have to add this to your path. On Aug 6, 2:10 am, Trausti Thor Johannsson <traust...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It looks like you don''t have rights to install the gems. Become root and > then install the gems.If you are installing them to your home directory make > sure you have full write privileges on your .gem directory > > chmod -R 775 .gem > > would do the trick > > Trausti > > On Thu, Aug 6, 2009 at 11:03 AM, Srinath A. < > > rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > Hi, > > I dont understand these lines . I was getting these warnings > > whenever i intall or uninstall a new gem . > > > WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and > > /usr/bin aren''t both writable. > > WARNING: You don''t have /home/srinath/.gem/ruby/1.8/bin in your PATH, > > gem executables will not run. > > > could any one please explain me !! > > > i had gem version 1.3.1 installed > > > thanks, > > sri.. > > -- > > Posted viahttp://www.ruby-forum.com/.