[mpich-discuss] question about running mpich2 on sol86

Rajeev Thakur thakur at mcs.anl.gov
Wed Jul 8 13:03:27 CDT 2009


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.)
 
Also try compiling and running a simple C++ program directly with the C++ compiler, not mpicxx.
 
Rajeev


  _____  

From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Shangli Wu
Sent: Wednesday, July 08, 2009 11:47 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] question about running mpich2 on sol86


Hi,
 
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:
 
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 > mpicxx cxxpi.cxx
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 > ls
a.out       cxxpi.cxx   cxxpi.cxx~
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 > a.out
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or directory
Killed
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 > mpd&
[1] 779
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 > mpiexec -n 2 a.out
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or directory
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or directory
 
 
The same file can build/run on Sun4v/Linux without any problem. Would someone help me to understand what's wrong on Sol86?
 
Thanks

Shangli Wu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090708/a0f3d799/attachment.htm>


More information about the mpich-discuss mailing list