RubyCocoa 0.4.0 path [?] Issue

Discussion in 'Ruby' started by Stephyn Butcher, Jul 11, 2003.

  1. Any Mac OS X/Ruby users out there?

    Okay...I like the command line but I'm itching for a GUI.

    I'm using Mac OS X 10.2.6 and Ruby 1.6.8 (compiled from source). I just
    compiled RubyCocoa 0.4.0 from source and even though I applied the
    patch to take care of the Segmentation Fault problem, there still seems
    to be a greater problem with RubyCocoa finding individual bundles. For
    example, the test suite quits with:

    [me@computer:~/Desktop/rubycocoa-0.4.0/tests]$DYLD_FRAMEWORK_PATH=/
    Users/stephyn/Desktop/rubycocoa-0.4.0/framework/build r
    uby -I../lib testall.rb
    ../lib/osx/cocoa.rb:12:in `require': No such file to load --
    osx/objc/cocoa (LoadError)
    from ../lib/osx/cocoa.rb:12
    from ./tc_nsattributedstring.rb:12:in `require'
    from ./tc_nsattributedstring.rb:12
    from testall.rb:4:in `require'
    from testall.rb:4
    from testall.rb:3:in `each'
    from testall.rb:3
    Loaded suite testall
    Started

    Finished in 0.002562 seconds.

    0 tests, 0 assertions, 0 failures, 0 errors

    Similarly, attempting to run any other of the sample scripts fails with
    similar results. Generally, anything osx/? can't be found. For example,

    [me@computer:/Developer/Examples/RubyCocoa]$ruby sndplay.rb
    /usr/local/lib/ruby/site_ruby/1.6/osx/cocoa.rb:12:in `require': No such
    file to load -- osx/objc/cocoa (LoadError)
    from /usr/local/lib/ruby/site_ruby/1.6/osx/cocoa.rb:12
    from sndplay.rb:1:in `require'
    from sndplay.rb:1

    This seems to be a known issue. I was curious if anyone had found a
    fix. I'm also posting to rubycocoa-talk but there doesn't seem to be
    much traffic on that list.

    Thanks in advance.
    Steve
     
    Stephyn Butcher, Jul 11, 2003
    #1
    1. Advertising

  2. At Fri, 11 Jul 2003 13:03:50 +0900,
    Stephyn Butcher wrote:
    > Similarly, attempting to run any other of the sample scripts fails with
    > similar results. Generally, anything osx/? can't be found. For example,
    >
    > [me@computer:/Developer/Examples/RubyCocoa]$ruby sndplay.rb
    > /usr/local/lib/ruby/site_ruby/1.6/osx/cocoa.rb:12:in `require': No such
    > file to load -- osx/objc/cocoa (LoadError)
    > from /usr/local/lib/ruby/site_ruby/1.6/osx/cocoa.rb:12
    > from sndplay.rb:1:in `require'
    > from sndplay.rb:1


    You should check the following:

    a0 = $:.dup
    require 'rubycocoa'
    p $: - a0

    The file "osx/objc/cocoa.rb" should exist in the result directory.

    I guess that rubycocoa.bundle or RubyCocoa.framework is broken,
    because "ruby install.rb setup" has failed. If so, I don't know
    why it failed. Did you check an error of the log when setup-phase?

    regards,
    --
    FUJIMTO Hisakuni
     
    FUJIMOTO Hisakuni, Jul 11, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Phil Tomson
    Replies:
    8
    Views:
    119
    Ollivier Robert
    Mar 6, 2004
  2. Phil Tomson
    Replies:
    1
    Views:
    112
    Mark Hubbart
    Mar 5, 2004
  3. Harry
    Replies:
    0
    Views:
    113
    Harry
    Jun 22, 2004
  4. Harry
    Replies:
    2
    Views:
    116
    Harry
    Jul 8, 2004
  5. jm
    Replies:
    7
    Views:
    138
Loading...

Share This Page