From: Anne G <an...@wj...> - 2005-12-22 06:03:02
|
Actually the simbl error was not the reason the rubycocoa tutorial does not run. I replaced the tutorial rb_main.rb with the simple example rb_main.rb since they seemed to do the same thing and I know simple example works. after rbfiles each do... I added some debugging puts puts File.basename(path) require( File.basename(path) ) puts "this is ok " Controller.rb /Users/anne/Desktop/learning ruby/ruby projects:addon/Code/build/Development/RubyCocoaTar.app/Contents/Resources/rb_main.rb:17:in `require': No such file to load -- Controller.rb (LoadError) This require must be the problem since it does not print the "this is ok" whereas simple applications gives AppController.rb this is ok MyView.rb this is ok It looks like the code looks in the project and finds .rb file. In the tutorial project there is just one file, Controller, I wonder why it did not find it to load. "no such file to load" I wondered if it was a path problem, so I copied simple application to the same folder that has the tutorial project. SimpleApp has exited with status 1. AppController.rb /Users/anne/Desktop/learning ruby/ruby projects:addon/simpleapp/build/Development/SimpleApp.app/Contents/Resources/rb_main.rb:13:in `require': No such file to load -- AppController.rb (LoadError) same error as with tutorial. What is the problem? What do I need to do to run rubycocoa from anywhere. I just installed /Installed/\ Done/RubyCocoa-0.4.2-tiger.dmg I did not see anything about setting a path. anne |