Ok I spent WAY too much time getting this to work so I'm just going to tell you what finally worked for me.
* Edit your ports down to 5.8 and port install oniguruma5 (5.9.1 might work, haven't retried it)
* ln -sf /opt/local/include/oniguruma.h /usr/include
* ln -sf /opt/local/lib/libonig.2.0.0.dylib /usr/lib
* ln -sf /opt/local/lib/libonig.2.dylib /usr/lib
* ln -sf /opt/local/lib/libonig.dylib /usr/lib
* gem install oniguruma
Essentially we're just tricking it into thinking the bits it needs are installed in the more traditional locations.
On my other computer I'm using ruby from ports... and this was 100% seamless... and there may be some way to pass the right args to gem install to get it to find the include and link things properly, but if it can be done I couldn't figure it out.
Good luck.
this is offtopic, but just thought I'd let you know - looks like http://beast.caboo.se/ is overrun with spambots now. I guess it's a weird sort of recognition - forum got big enough for spammers to notice it and write a script to spam it ;)
Posted by: aeon | November 12, 2008 at 07:48 PM
A thousand times thank you. I was about to pull my hair out...
Posted by: Matt Buck | December 05, 2008 at 02:35 PM
Hey Josh,
I finally tracked down this problem. The oniguruma gem doesn't allow you to tell it where the oniguruma library is installed. I fixed it here: http://github.com/indirect/oniguruma/commit/ea02a110b623d278395d693a67b117084fb70959
Posted by: Andre Arko | December 15, 2008 at 06:56 PM