<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial>You need to specify the directory containing the C++
compiler libraries in the environment variable LD_LIBRARY_PATH or build
MPICH2 without shared libraries. (The default build is without shared
librares.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial>Also try compiling and running a simple C++ program directly
with the C++ compiler, not mpicxx.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Shangli
Wu<BR><B>Sent:</B> Wednesday, July 08, 2009 11:47 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] question about
running mpich2 on sol86<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009>Hi,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=052024316-08072009>I try to build/run
the example cxxpi.cxx on Sol86 using mpicxx. Compile seems OK. But when I run
it, it shows error as:</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> mpicxx
cxxpi.cxx<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> ls<BR>a.out cxxpi.cxx
cxxpi.cxx~<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> a.out<BR>ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file
or
directory<BR>Killed<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> mpd&<BR>[1]
779<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
><BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> mpiexec -n 2 a.out<BR>ld.so.1: a.out: fatal: libstdc++.so.5: open failed:
No such file or directory<BR>ld.so.1: a.out: fatal: libstdc++.so.5: open
failed: No such file or directory</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=052024316-08072009>The same file can
build/run on Sun4v/Linux without any problem. Would someone help me to
understand what's wrong on Sol86?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=052024316-08072009><BR>Shangli
Wu</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>