#14 Build errors with Ruby 1.9.1

open
kimura wataru
None
5
2009-12-09
2009-11-28
Sean DeNigris
No

I installed Ruby with MacPorts in /opt/local/bin.
When I did the "ruby install.rb config" step, it was looking for "ruby.h" and "intern.h" in the wrong folder, so I copied the files over and it worked.

When I did "ruby install.rb setup," I got tons of errors, including:
In file included from /Users/sean/Downloads/RubyCocoa-1.0.1/framework/src/objc/cls_objcid.m:10:
/Users/sean/Downloads/RubyCocoa-1.0.1/framework/src/objc/cls_objcid.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objid_s_class'
/Users/sean/Downloads/RubyCocoa-1.0.1/framework/src/objc/cls_objcid.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objcid_new_with_ocid'
/Users/sean/Downloads/RubyCocoa-1.0.1/framework/src/objc/cls_objcid.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_cls_ObjcID'

I'm attaching the full file...

Discussion

  • kimura wataru
    kimura wataru
    2009-12-09

    • labels: 388434 -->
    • assigned_to: nobody --> kimuraw
     
  • kimura wataru
    kimura wataru
    2009-12-09

    unfortunately, current version of RubyCocoa do not support ruby-1.9.x.
    if you want to write cocoa app with ruby-1.9, I recommend MacRuby.

    http://www.macruby.org/