RubyCocoa 0.4.0 path [?] Issue

S

Stephyn Butcher

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
 
F

FUJIMOTO Hisakuni

At Fri, 11 Jul 2003 13:03:50 +0900,
Stephyn said:
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,
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top