On 30/09/2009, at 2:23 PM, Ben Hoskings wrote: > My problem with using the system-installed ruby is that every time you > "sudo gem install", you're changing the base system. There's a really > good writeup in the homebrew README under "Don't sudo": > http://github.com/mxcl/homebrew
I simply set my GEM_HOME and GEM_PATH in ~/.profile to this: export GEM_HOME=~/Gems/1.8 export GEM_PATH=/System/Library/Frameworks/Ruby.framework/Versions/1.8/ usr/lib/ruby/gems/1.8:/Library/Ruby/Gems/1.8:$GEM_HOME Then I don't need to do "sudo gem install". The gems I install go in my GEM_HOME. All of the system gems are still accessible (as are mine) because of the GEM_PATH. Simple. This is also very handy for having your own gems on shared servers... don't need to have multiple copies of natively-compiled stuff like the MySQL drivers, etc; but you can still add your own gems without having to beg the sysadmins to do it for you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
