Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > RubyCocoa 0.4.0 path [?] Issue

Reply
Thread Tools

RubyCocoa 0.4.0 path [?] Issue

 
 
Stephyn Butcher
Guest
Posts: n/a
 
      07-11-2003
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


 
Reply With Quote
 
 
 
 
FUJIMOTO Hisakuni
Guest
Posts: n/a
 
      07-11-2003
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with rubycocoa on macosx 10.3.8 w/ ruby 1.8.1 jm Ruby 7 02-21-2005 10:52 PM
[RubyCocoa] Cocoa Bindings? (cont.) Harry Ruby 2 07-08-2004 06:38 AM
Cocoa Controller Layer and RubyCocoa? Harry Ruby 0 06-22-2004 09:19 AM
Ruby 1.8.1 on OS X Panther and RubyCocoa Phil Tomson Ruby 8 03-06-2004 11:21 PM
RubyCocoa problem:multiple definitions of _rb_obj_clone Phil Tomson Ruby 1 03-05-2004 10:33 AM



Advertisments