[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: RubyCocoa problem: No such file to load -- osx/objc/cocoa

Ralph Pöllath

10/6/2003 6:52:00 PM

Hi,

> Either way, once you do this, you'll get a real error referencing a
> missing Objective C superclass (or something like that, I forget all
> of the details). I have never gotten beyond that point.

Right, I can avoid the LoadError by specifying the correct include path
on the command line, but for some reason, class ObjcID seems not to be
defined:

$ ruby -r'rubycocoa' -e 'puts "OK"'
OK
$ ruby -r'rubycocoa' -r 'osx/cocoa' -e 'puts "OK"'
/usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12:in `require': No such
file to load -- osx/objc/cocoa (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12
$ ruby
-I/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby
-r'rubycocoa' -r 'osx/cocoa' -e 'puts "OK"'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/
objc/oc_object.rb:15: undefined superclass `ObjcID' (TypeError)
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/
objc/oc_all.rb:13:in `require'
<snip>

Cheers,
-Ralph.