Gecode/r Under Mac OSX

Posted by Aaron Feng Fri, 06 Jul 2007 02:57:00 GMT

I had a little bit of trouble getting gecode/r running at first. Gecode/r is a wrapper around Gecode, so you'll need to also install Gecode before installing Gecoder/r. I started out using the disk image for Mac OSX 10.4, but Gecode/r would produce the following error when I tried to require Gecode/r:

irb(main):002:0> require 'gecoder'
dyld: NSLinkModule() error
dyld: Symbol not found: __ZNK6Gecode9Exception4whatEv
 Referenced from:
/usr/local/lib/ruby/gems/1.8/gems/gecoder-0.3.0/lib/gecode.bundle
 Expected in: flat namespace

It turns out, I have to download Gecode source and compile it on my Mac. After that, all I had to do is: gem install gecoder.

Comments

Leave a response

Comments