From: Yvon Thoraval Date: 2006-08-04T16:36:26+09:00 Subject: Re: [MacOS X] finding the orig file of an alias --Apple-Mail-3-276122577 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Le 4 ao=FBt 06 =E0 09:12, Dave Howell a =E9crit : > > Hmm. I suspect if you hunt around in ~/Library/Frameworks or /=20 > Library/Frameworks, you'll find the RubyCocoa framework. Which is =20 > to say, nowhere on your command-line path directories, but exactly =20 > where Cocoa apps expect to find such things. > > Based on the misery I've experienced in this situation, were I you, =20= > I would now try to wipe every last trace of RubyCocoa off my =20 > system, then do a new install in order to get *one* copy of =20 > RubyCocoa that's visible to all the different ways you can run Ruby. > > If you don't wipe it first, then you can easily get in a situation =20 > where the command line is running a *different* version of =20 > RubyCocoa than XCode, and that's hideous to debug. i've installed ruby, rubycocoa by DarwinPorts... right now, i've found a workaround, instead of writting : require 'osx/cocoa' # alone i use : require '/opt/local/lib/ruby/vendor_ruby/1.8/powerpc-=20 darwin8.5.0/rubycocoa.bundle' before. and it works, not a "good" solution, only to experiment apart from =20 XCode. what i suspect also is that the loading order of *.rb files isn't the =20= same within XCode than using terminal... from XCode i'm sure i'm using the same ruby as from terminal and/or =20 Textmate (by "which ruby" giving the same "/opt/local/bin/ruby") the RubyCocoaFramework lies in : /Library/Frameworks/RubyCocoa.framework it has been installed by darwinports i've tried several times having the same setup for ruby from command =20 line and from XCode, and i've learned today darwinports isn't the =20 best... what kind of install would you advice ? from cvs sources ? best, Yvon PS : on RubyCocoa list they advice me to use dp )))= --Apple-Mail-3-276122577--