[LRUG] Setting up Ruby + Gems + Rails on OS X

Pat Allan pat at freelancing-gods.com
Wed Dec 9 03:17:20 PST 2009

On 09/12/2009, at 9:59 PM, Paul Campbell wrote:

>>> Like Paul, I use the inbuilt Ruby, but I changed the gem location  
>>> to be
>>> local. For bash, this can be done as follows:
>>> http://gist.github.com/217895
>> I'm pretty sure that if you don't have write access to the system gem
>> path a gem install will use ~/.gem by default.  I don't know when  
>> this
>> changed in rubygems but I know it used to complain and now it  
>> silently
>> puts things in ~/.gem whenever I forget to sudo.
> Yeah, I try not to use sudo most of the time. My ~/.bash_profile  
> just has this:
> PATH=$PATH:/Users/paul/.gem/ruby/1.8/bin

It does indeed do it by default - I found it still complained until I  
told it to just use ~/.gem and nowhere else.


More information about the Chat mailing list