From: Mark Wilson Date: 2003-01-13T11:45:24+09:00 Subject: RubyCocoa Ruby script problems I'm having a little trouble with some of the RubyCocoa examples (in particular, the Ruby scripts that call on the Cocoa framework). After installing RubyCocoa I can run the sample .app files (including the ones that I build with pbx). But I can't run the Ruby scripts. For example $ ruby sndplay2.rb /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 from sndplay.rb:1:in `require' from sndplay.rb:1 The following is what happens after I copy the objc directory and its contents from {rubycocoa directory}/framework/src/osx/objc to /usr/local/lib/ruby/site_ruby/1.8/osx/ $ ruby sndplay2.rb /usr/local/lib/ruby/site_ruby/1.8/osx/objc/oc_object.rb:15: undefined superclass `ObjcID' (TypeError) from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/oc_all.rb:13:in `require' from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/oc_all.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/foundation.rb:1:in `require' from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/foundation.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/cocoa.rb:11:in `require' from /usr/local/lib/ruby/site_ruby/1.8/osx/objc/cocoa.rb:11 from /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12:in `require' from /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12 from sndplay2.rb:1:in `require' from sndplay2.rb:1 Any help would be appreciated. Mark Wilson