Running PDFNet for Ruby

Q: The PDFNet in the Ruby flavor sounds especially helpful. (I love Ruby) I’m having some trouble getting the samples to run, however. I ran the install script, but I’m getting this response from the sample script:

null-002500431691:Samples matt$ sh runall_ruby.sh

…/…/…/Lib/PDFNetRuby.bundle: dlopen(…/…/…/Lib/PDFNetRuby.bundle, 9):
Library not loaded: /usr/local/lib/libruby.1.9.1.dylib (LoadError)
Referenced from: /Users/matt/Downloads/PDFNetC/Lib/PDFNetRuby.bundle
Reason: image not found - …/…/…/Lib/PDFNetRuby.bundle
from AddImageTest.rb:6

Is there an additional step to install the ruby bundle that isn’t mentioned in the documentation?
I am using 1.9.2 using RVM

A: Most likely you need to copy libruby.1.9.1.dylib to /usr/lib/? This file should be included with your RVM Ruby installation. By default, it should be pathToRVM/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.1.9.1.dylib. You might not be able to see this directory in the finder, in this case you can do the copying in the terminal. The following is the command:

sudo cp …/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.1.9.1.dylib /usr/lib/