[Gridflow-dev] osx loading prob

james tittle tigital at mac.com
Sun Mar 26 23:08:57 EST 2006


On Mar 26, 2006, at 5:50 PM, Mathieu Bouchard wrote:
> By default, there's a "." in the path, but it's not active if your  
> current
> dir isn't the one where gridflow.so sits. Because of that,
> gridflow.pd_darwin (and .pd_linux) figures out where it was found  
> by pd,
> using open_via_path(), and then prepends a few things in Ruby's path.

...here's what I'm now getting at -stderr:

tried /Users/tigital/puredataDev/gridflow/gridflow.pd_darwin and  
succeeded
gridflow.pd_darwin found itself in /Users/tigital/puredataDev/gridflow
we are using Ruby version 1.9.0
DIR = "/Users/tigital/puredataDev/gridflow"
Ruby's path = ["/Users/tigital/puredataDev/gridflow/..", "/Users/ 
tigital/puredataDev/gridflow", "/Users/tigital/puredataDev/gridflow/ 
optional/rblti", "/Users/tigital/puredataDev/gridflow/lib/ruby/ 
site_ruby/1.9", "/Users/tigital/puredataDev/gridflow/lib/ruby/ 
site_ruby/1.9/powerpc-darwin8.5.0", "/Users/tigital/puredataDev/ 
gridflow/lib/ruby/site_ruby", "/Users/tigital/puredataDev/gridflow/ 
lib/ruby/1.9", "/Users/tigital/puredataDev/gridflow/lib/ruby/1.9/ 
powerpc-darwin8.5.0", "."]
[LoadError] [no such file to load -- gridflow]:
(eval):1:in `require'
(eval):1
ERROR: Cannot load GridFlow-for-Ruby (gridflow.so)

> But hey, Ruby might actually be looking for a .dylib or a .bundle !  
> what
> if you rename gridflow.so ?

...good ideas, but I'd tried some of those AND just "gridflow", but  
still no love :-(  But I hadn't tried .bundle, and when I did, I got  
the following:

[LoadError] [Failed to load /Users/tigital/puredataDev/gridflow/ 
gridflow.bundle]:
/Users/tigital/puredataDev/gridflow/gridflow.bundle
(eval):1
ERROR: Cannot load GridFlow-for-Ruby (gridflow.so)

...so, my next move will be to make sure we're compiling this as a  
proper bundle...

jamie




More information about the Gridflow-dev mailing list