From: Pete N. <pe...@me...> - 2009-11-16 04:31:37
|
From http://rubycocoa.sourceforge.net/GettingStarted: If you decided to built Ruby by yourself and not using the version Apple provides, make sure you compiled it as a shared library, passing the --enabled-shared option to theconfigure script. By default this option is not activated. But: $ ruby install.rb config --enable-shared config: unknown option --enable-shared try 'ruby install.rb --help' for usage Still: $ ruby install.rb config --prefix=/opt/local $ ruby install.rb setup $ sudo ruby install.rb install $ irb irb(main):001:0> require 'osx/cocoa' => true (OS X 10.6.1, Ruby 1.8.7 from MacPorts) I think the documentation needs updating, but I'm not sure if I'm missing something. |