<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=906544714-12092008>Try setting it in your .bashrc
file.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=906544714-12092008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=906544714-12092008>Rajeev</SPAN></FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Alex
Loh<BR><B>Sent:</B> Friday, September 12, 2008 9:03 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] Need help
with "Error while loading shared libraries"when starting
MPIRUN<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hi,
<DIV><BR></DIV>
<DIV>Thanks Dorian for the quick reply.</DIV>
<DIV><BR></DIV>
<DIV>I am using MPICH 1.2.7p1 so neither of these parameters are available. I
am quite certain that LD_LIBRARY_PATH is the problem so how was this set
properly in MPICH1?</DIV>
<DIV><BR></DIV>
<DIV>All of my software have been tested running (for many years) on version 1
before I recently took over so I am very reluctant to upgrade to MPICH2.</DIV>
<DIV>My mpichversion returns:</DIV>
<DIV>MPICH Version: 1.2.7p1
<DIV class=gmail_quote>MPICH Release date: $Date: 2005/11/04
11:54:51$</DIV>
<DIV class=gmail_quote>MPICH Patches applied: none</DIV>
<DIV class=gmail_quote>MPICH configure:
-prefix=/u/alexloh/mpich127</DIV>MPICH Device:
ch_p4<BR></DIV>
<DIV>I am on a Linux machine, Ubuntu (ver 6 i think).</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>Alex Loh.</DIV>
<DIV><BR></DIV>
<DIV><BR>
<DIV class=gmail_quote>On Fri, Sep 12, 2008 at 1:39AM, ddkrause <SPAN
dir=ltr><<A
href="mailto:ddkrause@uni-bonn.de">ddkrause@uni-bonn.de</A>></SPAN>
wrote:</DIV>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>Alex Loh wrote:<BR>> Hi all,<BR>><BR>> I have an
MPI program which runs well with -np 1, but when I try to<BR>> run it in
parallel (-np 2), it crashes with the message:<BR>><BR>> "error while
loading shared libraries: libcode_unified.so.2: cannot<BR>> open shared
object file: No such file or directory<BR>> p0_26145: p4_error:
Child process exited while making connection to<BR>> remote process on
<hostname>: 0<BR>> p0_26145: (2.105343) net_send: could not write
to fd=4, errno = 32"<BR>><BR>> libcode_unified.so.2 is a library that
my program needs in order to run.<BR>><BR>> I read that this is
related to the LD_LIBRARY_PATH, but I am sure that<BR>> my environment is
set correctly. I have it exported in .bash_profile<BR>> which I believe
works for non-interactive logins. I have also wrote<BR>> small test
programs to echo the value of LD_LIBRARY_PATH and these<BR>> display the
correct path to find the library file. My small test<BR>> programs (that
don't use libraries) also run well in parallel.<BR>><BR>> Does anyone
have any ideas?<BR>><BR>><BR>> Thanks,<BR>> Alex
Loh.<BR></DIV></DIV>Did you try to pass LD_LIBRARY_PATH to the program by
means of the -genv<BR>or -genvlist switches?<BR><BR>Regards,<BR>Dorian
Krause<BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>