Hi Wolfgang,

OK this one is an easy fix.  In /Users/kittekat/RubyCocoa/RubyCocoa/RubyCocoa-1.0.1/framework/tool  there is a file called gen_bridge_doc.rb  If you open it up, you'll see on line 77 why you have a problem...

      if `sw_vers -productVersion`.strip =~ /^10\.5/
        '/Developer/ADC Reference Library/documentation'

Apple changed the layout of documentation in Leopard.  Unfortunately the gen_bridge_doc tool has not been updated to recognise that 10.6 now exists, so it is defaulting back to the old doc layout of 10.4 and earlier.  To make doc installation work again, you just need to change the code so that it matches 10.6 rather than 10.5.  Better yet would be to modify the code so that it works for any version of MacOSX from Leopard onwards, and to submit the patch to the maintainers.

Hope that helps.


Le 15 févr. 10 à 19:43, Wolfgang Kittenberger a écrit :

I am on SnowLeopard (10.6.2) and in /Developer/Documentation/RubyCocoa/Frameworks/html are only a few japanese files. So I downloaded the RubyCocoa-1.0.1 tarball.  After "ruby install.rb config" and "ruby install.rb setup" without any problems I get an error when issuing "ruby install.rb doc":

myMini-2:RubyCocoa-1.0.1 kittekat$ ruby install.rb doc  
install.rb: entering doc phase...
---> framework
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby gen_bridge_doc.rb build ../bridge-doc
mkdir -p /Users/kittekat/RubyCocoa/RubyCocoa/RubyCocoa-1.0.1/framework/bridge-doc
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb  '/Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/' /Users/kittekat/RubyCocoa/RubyCocoa/RubyCocoa-1.0.1/framework/bridge-doc/ruby

Working on: ApplicationKit

gen_bridge_doc/rdocify_framework.rb:29:in `open': No such file or directory - /Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/Classes/ (Errno::ENOENT)
from gen_bridge_doc/rdocify_framework.rb:29:in `entries'
from gen_bridge_doc/rdocify_framework.rb:29:in `get_reference_files'
from gen_bridge_doc/rdocify_framework.rb:150
gen_bridge_doc.rb:35:in `command': 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb  '/Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/' /Users/kittekat/RubyCocoa/RubyCocoa/RubyCocoa-1.0.1/framework/bridge-doc/ruby' failed (RuntimeError)
from gen_bridge_doc.rb:39:in `ruby'
from gen_bridge_doc.rb:99
from gen_bridge_doc.rb:98:in `each'
from gen_bridge_doc.rb:98
rm -rf bridge-doc
doc failed
hook /Users/kittekat/RubyCocoa/RubyCocoa/RubyCocoa-1.0.1/framework/pre-doc.rb failed:
'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby gen_bridge_doc.rb build ../bridge-doc' failed
try 'ruby install.rb --help' for usage
myMini-2:RubyCocoa-1.0.1 kittekat$ 

Did I miss to install something, or is this step broken in the actual MAC OSX version?

Best regards

The Bridgedoc page (http://rubycocoa.sourceforge.net/BridgeDoc) references an external page (http://www.superalloy.nl/blog/?p=6) which does not exist.
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
Rubycocoa-talk mailing list