Hi,

Am 16.08.2013 um 01:33 schrieb Eric Heien:

> I'm compiling OpenMPI 1.6.5 on a set of different machines with different 
> operating systems.  I install OpenMPI in directory A, then later move it to 
> directory B and compile my own code with mpicc or mpic++.  Of course I need 
> to set the OPAL_PREFIX environment variable to point to directory B.  This 
> works fine on all my platforms (RedHat, Ubuntu, Fedora, Debian, etc) but 
> still fails on Mac OS X 10.7 and 10.8 with the following error:
> 
> [xxx] ~ > env | grep OPAL
> OPAL_PREFIX=/Users/eheien/B/
> [xxx] ~ > mpicc
> dyld: Library not loaded: /Users/eheien/A/lib/libopen-pal.4.dylib
>  Referenced from: /Users/eheien/B/bin/mpicc

Besides setting the OPAL_PREFIX, also the DYLD_LIBRARY_PATH needs to be 
adjusted to point to the new /Users/eheien/B/lib location.

-- Reuti


>  Reason: image not found
> Trace/BPT trap: 5
> 
> It appears the libopen-pal path is hardcoded into the opal_wrapper on OS X (I 
> can also find it in the binary).  Does this sound like correct behavior?  If 
> so, is there a way to get this to work correctly with OPAL_PREFIX like it 
> does on the other operating systems?
> 
> Thank you for your help,
> 
> -Eric
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to