Mac OS X 10.7.5 dyld: Library not loaded: /usr/lib/libopen-pal.0.dylib

Hello everyone,

I am trying to install CUDA 5.0 on Macbook Pro with Mac OS X 10.7.5

When I change directory to /Developer/NVIDIA/CUDA-5.0/samples and type make I get the following error.

dyld: Library not loaded: /usr/lib/libopen-pal.0.dylib
Referenced from: /usr/bin/mpicxx
Reason: no suitable image found. Did find:
/usr/lib/libopen-pal.0.dylib: mach-o, but wrong filetype
/usr/lib/libopen-pal.0.dylib: mach-o, but wrong filetype
make[1]: *** [main.o] Trace/BPT trap: 5
make: *** [0_Simple/simpleMPI/Makefile.ph_build] Error 2

Your help is highly appreciated!


The error is coming from OpenMPI.
Before attempting to compile this example, please be sure that you have a working MPI.
For a system with a single GPU, this example is not very relevant.