Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Brian Budge (brian.budge_at_[hidden])
Date: 2007-01-16 20:22:35

Hi all -

I'm having a bit of an issue with my library paths and mpi that I can't
quite seem to resolve.

If I run from host-0:
> mpirun -np 4 -host host-0 myprogram

I have no problems, but if I run
>mpirun -np 4 -host host-1 myprogram

I get an error like this:
error while loading shared libraries: cannot open shared object
file: No such file or directory

I can see that it can't find two of my shared library files when I execute
>mpirun -np 1 -host host-1 ldd myprogram => (0xb7f48000) => not found => /usr/lib/ (0xb7e96000) => not found => /usr/lib/ (0xb7e7e000) => /usr/lib/ (0xb7dd9000) => /usr/lib/ (0xb7d92000) => /usr/lib/ (0xb7d45000) => /lib/ (0xb7d41000) => /lib/ (0xb7d2b000) => /lib/ (0xb7d27000) => /lib/ (0xb7d01000) =>
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/ (0xb7c22000) => /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/
(0xb7c18000) => /lib/ (0xb7c01000) => /lib/ (0xb7adb000) => /usr/lib/ (0xb7ad6000) => /usr/lib/ (0xb7ad3000) => /lib/ (0xb7aa5000)
        /lib/ (0xb7f49000) => (0xb7f23000)

If I run the following, however, I see that my LD_LIBRARY_PATH is correct:
> mpirun -np 1 -host burn-0 echo $LD_LIBRARY_PATH


For now I've had to resort to making mpi run a wrapper script which sets my
LD_LIBRARY_PATH, but naturally this isn't ideal. Does anyone have an idea
what this is or how I can fix it?