On Jun 9, 2006, at 12:52 AM, John Berry wrote:
Using Pd version 0.38.4-extended-RC8 on OS X Tiger (10.4.6),
Gridflow 0.8.3 built using recent Ruby 1.9 CVS snapshot. gridflow
builds fine for me when I do the following:
...hmm, I think matju claims that a specific version of ruby is
needed (the most recent working one I know of is "cvs update -
D2006-01-01 ruby")...
./configure --use-compiler=/usr/bin/g++-3.3 --no-fftw MACOSX_DEPLOYMENT_TARGET=10.3 make
and I get a gridflow.bundle and gridflow.pd_darwin file as a result.
I have copied gridflow.pd_darwin to the extras/gridflow directory,
and copied the gridflow.bundle file all over the freakin place,
everywhere that Ruby reports it's trying to look for it, with no
luck. Running PD fails like so:gridflow.pd_darwin found itself in ./extra/gridflow we are using Ruby version 1.8.4 DIR = "./extra/gridflow" Ruby's path = ["./extra/gridflow/..", "./extra/gridflow", "./extra/ gridflow/optional/rblti", "/sw/lib/ruby/site_ruby/1.8", "/sw/lib/ ruby/site_ruby/1.8/powerpc-darwin", "/sw/lib/ruby/site_ruby", "/sw/ lib/ruby/1.8", "/sw/lib/ruby/1.8/powerpc-darwin", "."] [LoadError] [Failed to load ./extra/gridflow/gridflow.bundle]: ./extra/gridflow/gridflow.bundle (eval):1 ERROR: Cannot load GridFlow-for-Ruby (gridflow.so)
Mystery #1: Why is PD reporting Ruby version 1.8.4? Mystery #2: If gridflow.bundle is in one of the locations in the
path, why can't GridFlow-for-Ruby be loaded?
...the answer to both of these mysteries is that you may have
compiled gridflow against rubycvs 1.9, but it is linked against ruby
1.8.4 in fink: you can see this by running
otool -L gridflow.pd_darwin otool -L gridflow.pd_darwin
...if either one has something like "/sw/lib/libruby.1.8.dylib"
listed, then it needs to be changed to your libruby.
1.9.dylib...luckily there's an easy step to fix this: run the
following command (after correcting the paths for your system):
install_name_tool -change /sw/lib/libruby.1.8.dylib /your/path/to/ gridflow/lib/libruby.1.9.0.dylib gridflow.pd_darwin
...then run the otool stuff to check that it changed...if that works,
you should be able to load gridflow, but don't expect much, because
we quickly found lotsa unusual crashing, and haven't yet had time to
track down who's fault it is (ruby/gridflow/ppc/etc)...
jamie