On Thu, Apr 2, 2009 at 1:00 AM, Colin Law <[email protected]> wrote:
> 2009/4/2 thitima panyayai <[email protected]> > >> i try gem install mislav-will_paginate >> i get this >> >>>WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and >> /usr/bin aren't both writable. >> >>>WARNING: You don't have /home/apple/.gem/ruby/1.8/bin in your PATH, >> gem executables will not run. > > > This may have happened because you should have used sudo gem install ...... > Without the sudo you could not write to the relevant folders. The result > is that it has installed it to ~/.gem instead of the the correct place. I > fell over this myself and was not sure how to get out of it. Can anyone > advise the correct solution? I tried gem uninstalling but that would not > work. If I remember correctly I ended up deleting ~/.gem (or renaming > actually just in case) and re-installing the gem (with sudo this time). > > > >> >> Successfully installed mislav-will_paginate-2.3.8 >> 1 gem installed >> Installing ri documentation for mislav-will_paginate-2.3.8... >> Installing RDoc documentation for mislav-will_paginate-2.3.8... >> >> >> 2009/4/2 Conrad Taylor <[email protected]> >> >> On Thu, Apr 2, 2009 at 12:23 AM, [email protected] <[email protected]>wrote: >>> >>>> >>>> Hello , >>>> i stall will_paginate plug in by using >>>> >>mkdir vendor/plugins/will_paginate >>>> >> wget -nv http://github.com/mislav/will_paginate/tarball/master -O- | >>>> \tar xzv -C vendor/plugins/will_paginate --strip 1 >>>> >>i get this >>>> >> >>>> [snip error details] >>>> >>>pls ,tell me what i missing? >>>> thank you >>>> >>> >>> Hi, did you try installing it as a gem? For example, >>> >>> gem install mislav-will_paginate >>> >>> -Conrad >>> >>> >>> >>> >> >> >> > Removing .gem directory and re-installing works. -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] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

