Article:
  An Introduction to RubyCocoa, Part 2
Subject:   Having install troubles
Date:   2004-10-16 10:18:31
From:   allClass
I'm pretty sure something about my install is messed up because even if I open the sample apps and try to run them from xcode I still get errors. For instance:



[Session started at 2004-10-16 10:14:46 -0700.]
/Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/Model.rb:162:in `require': No such file to load -- rbconfig (LoadError)
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/Model.rb:162:in `snd_init'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/Model.rb:62:in `initialize'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/AppCtrl.rb:83:in `new'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/AppCtrl.rb:83:in `ball_init'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/AppCtrl.rb:77:in `each'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/AppCtrl.rb:77:in `ball_init'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/AppCtrl.rb:9:in `awakeFromNib'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/rb_main.rb:15:in `NSApplicationMain'
from /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/rb_main.rb:15


Executable “rubyapp” has exited with status 1.



Any help appreciated

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Having install troubles
    2004-10-16 17:26:44  Christopher Roach | O'Reilly Blogger [View]

    Well, I have two things to mention here. First, truthfully, I still have problems with some of the samples that were supllied. The Pong sample is one of these. So, give the RubyTypingTutor sample a try and see what happens. That one worked for me.

    Second, I did a search on my system for the file you're having trouble loading (the rbconfig file) and it only shows up in one place--my Ruby install folder, not my RubyCocoa folder. I am running Ruby 1.8.1 and I read over some of the info at the RubyCocoa site and it seems like there are some problems with running the default version of Ruby that comes with the Mac. So, you may want to try installing the latest version of Ruby and then Reinstalling RubyCocoa. That may solve the problem your having.

    If either of these don't seem to work for you, write me back and I'll see if I can come up with some other solution.

    Good luck.
    • Having install troubles
      2004-11-07 12:50:28  leeg [View]

      I'm having what seems to be the same problem as the other people who've written here - I wonder whether you or anyone else has discovered a solution yet? The build error (this is with the stub 'puts' lines in Controller.rb) is:


      /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:22:in `module_eval': undefined method `NSClassFromString' for OSX:Module (NoMethodError)
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:21:in `module_eval'
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:21:in `ns_import'
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/foundation.rb:5
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:11:in `require'
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:11
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11:in `require'
      from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11
      from /Users/leeg/devel/Cocoa/RubyTar/build/RubyTar.app/Contents/Resources/rb_main.rb:9:in `require'
      from /Users/leeg/devel/Cocoa/RubyTar/build/RubyTar.app/Contents/Resources/rb_main.rb:9

      Some potentially useful configuration information:


      mallet:~ leeg$ ruby -v
      ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]
      mallet:~ leeg$ uname -a
      Darwin mallet.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh powerpc
      XCode 1.5
      Component versions
      Xcode IDE: 389.0
      Xcode Core: 387.0
      ToolSupport: 372.0

      I did a cvs up on rubycocoa to make sure that the problem persisted, just before posting this message. Indeed it does. Thanks, leeg.

      • Having install troubles
        2004-11-07 18:25:12  Christopher Roach | O'Reilly Blogger [View]

        Hi, I just posted a response above to the "Installer Grief" posting that I think may also pertain to your problem. I hope it helps, but let me know if it doesn't and I'll see if I can dig something else up for you to try.

        Thanks for reading the article and I hope that this solves your problems.