LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-06-28 06:03:44


On Sun, 27 Jun 2004, Pushkar Pradhan wrote:

>> What this means is that you need to set your LD_LIBRARY_PATH on all the
>> nodes in your LAM universe. You need to ensure that it is set *before*
>> you run lamboot (i.e., edit your "dot" files to include setting the
>> LD_LIBRARY_PATH to $prefix/lib, where $prefix is the directory where
>> you installed LAM).
>
> I've the paths setup in my .bashrc but the FAQ says that .bashrc is not
> read by sh/bash shell so I created a .profile (copy of .bashrc) in my
> $HOME. Even then I get the same error.

Actually, that's not what the FAQ says. :-)

The FAQ says that .bashrc is not read for interactive logins, but it is
read for noninteractive logins (which is what LAM uses).

But either way, it sounds like you set LD_LIBRARY_PATH in both cases (I'm
guessing/assuming you didn't delete your .bashrc file).

Some other things to check:

1. Did you export the value of LD_LIBRARY_PATH? For example, a line such
as:

export LD_LIBRARY_PATH=/whatever/the/path/should/be

2. Did you double and triple check that the path is correct? It should
probably end in /lib (assuming you did a "normal" LAM installation). When
testing such things, I typically "cat .bashrc" and then copy-n-paste the
value that is set in the file to an "ls" command on the shell and ensure
that the spelling in the file is exactly valid.

3. If that all checks out, put an "echo" statement or two in your .bashrc,
perhaps one at the beginning and one right before you export
LD_LIBRARY_PATH and ensure that you see these lines during lamboot.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/