From: Bob Hutchison Date: 2006-10-28T21:28:16+09:00 Subject: Re: upgrade on OS X On 27-Oct-06, at 6:56 PM, Tim McIntyre wrote: > Hey all, > > Wasn't sure if this should go to the ruby or rails list but here we > are... > > I've been running OS X (10.8.4) with the packaged ruby (1.8.2) and > rails for some time, no problems. I decided to test out mongrel > but that requires >= 1.8.4 so I grabbed the 1.8.5 source, built > that then modified my path and all good... up and running. > > The problem is all my gems are gone. Well they're not gone of > course but "gem list --local" shows nothing and, of course, nothing > that depends on them works. I've looked around a good bit but > haven't seen anything about this. > > Any ideas on why this is? The ruby as shipped by apple is not in the same place on disk as the 1.8.5 distribution you built. In my case 1.8.5 is in /usr/local/... and so the gems are in /usr/local/lib/ruby/gems/1.8/gems/ -- your gems won't be there. You can set the GEM_HOME environment variable, or re-install your gems. I re-installed. BTW, if you are using gcc4 as shipped by Apple, you should re-compile with -O or -O1 rather than -O2, or use gcc3 -- with -O2 you will get strange heap problems after running ruby for a while. Cheers, Bob > > Thanks in advance! > Tim > > Be who you are and say what you feel, because those who mind don't > matter and those who matter don't mind. > - Dr. Seuss > > > > ---- Bob Hutchison -- blogs at Recursive Design Inc. -- Raconteur -- xampl for Ruby --