From: Julian Leviston Date: 2005-08-03T22:18:37+09:00 Subject: Re: setting up ruby on os x 10.2 Hi. Yes, I use fink. No I never installed ruby with fink (unless it was a dependent package that I was unaware of for something else). I checked and there doesn't seem to be anything under /sw or /sw/bin relating to ruby (ls -la | grep ruby returned nada) Yes I complied made and installed my own ruby... when I ran ruby setup.rb I did it as root. We can't upgrade this machine to 10.3 or .4. But yeah, on my dev machine, I'm using 10.4... it was a pain to set up as well... I just tried a package install then... and that didn't work either - not sure if it would have overwritten files or not... I might untar another copy of the rubygems distribution again... :-) Thanks Julian. On 03/08/2005, at 11:09 PM, Jason Foreman wrote: > the /sw/bin and /sw/sbin concern me. Do you use fink? Did you ever > install ruby with fink? is there anything under /sw related to ruby. > Did you compile and install your own ruby? When you ran 'ruby > setup.rb' did you run it with sudo or logged in as root? > > Also, when your gem install failed, did you still have the Apple > provided ruby in your path? Quite possibly gem could have installed > to /usr/local but still be pointing at /usr. I've had this problem > before. > > Once you've got /usr/local/bin ahead of /usr/bin in your PATH, then > untar a new copy of the RubyGems distribution and run ./configure > again. Then try to build it. > > Also, I see the subject says 10.2? I wonder if this might be a > problem? I bet most users here are at least using 10.3, if not 10.4. > > Let us know if any of this helps. > > > Jason > > On 8/3/05, Julian Leviston wrote: > >> I'm not sure how this works, but my path WAS and IS this: >> >> /sw/bin /sw/sbin /usr/local/bin /bin /sbin /usr/bin /usr/sbin /usr/ >> X11R6/bin >> >> Which is a bit interesting, because typing ruby -v would echo 1.6.7 >> which was kinda weird... because I had 1.8.2 installed. After >> deleting / hardlilnking / symlinking, of course it does 1.8.2... but >> I *STILL* can't get gem installed. >> >> Any further ideas? >> >> Julian. >> >> On 03/08/2005, at 4:57 PM, Mark Hubbart wrote: >> >> >>> On 8/2/05, Julian Leviston wrote: >>> >>> >>>> /usr/local/bin appears to be in my path. >>>> >>>> I deleted /usr/bin/ruby but not irb, and not /usr/lib/ruby dir - >>>> should I delete these? >>>> >>>> Julian. >>>> >>>> >>> >>> There is no reason to delete Apple's 1.6.x Ruby at all. Just make >>> sure >>> that /usr/local/bin is in front of /usr/bin in your path: >>> >>> mark@eMac% echo $PATH >>> /usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ >>> X11R6/bin:/usr/local/mysql/bin:/usr/local/mysql/sbin:/Developer/ >>> Tools:. >>> >>> Since /usr/local/bin is first in the path, apple's ruby will >>> never be >>> used unless you change your path. Yes, you have to make sure that >>> any >>> shebangs point to the right place, though. (which is why I use >>> "#!/usr/bin/env ruby") >>> >>> Leaving the 1.6.x install there lets you have a compatability >>> version, >>> since 1.6.x is installed on many many *many* boxes right now. >>> >>> :/ sorry if this sounds like a rant. I suppose it is, a bit... >>> >>> cheers, >>> Mark >>> >>> >>> >> >> >> >> > >