Boost logo

Boost-Build :

Subject: [Boost-build] problem with boost mpi
From: praga (mail2praga_at_[hidden])
Date: 2009-11-25 14:29:41


I ran a simple program using boost mpi but I found some problems with that.
I have given the code and actions I have done. The ldd clearly says it cant
find many libraries. I am not sure how to fix this. Could anybody help me ?

main.cpp

#include <boost/mpi/environment.hpp>#include
<boost/mpi/communicator.hpp>#include <iostream>namespace mpi =
boost::mpi;
int main(int argc, char* argv[]) {
  mpi::environment env(argc, argv);
  mpi::communicator world;
  std::cout << "I am process " << world.rank() << " of " << world.size()
            << "." << std::endl;
  return 0;}

[pragatheeswaran_at_prairiefire ~]$ mpic++ -I bin/boostpath/include main.cpp -L
bin/boostpath/lib/ -lboost_mpi -lboost_serialization
[pragatheeswaran_at_prairiefire ~]$ ldd a.out
libboost_mpi.so.1.41.0 => not found
libboost_serialization.so.1.41.0 => not found
 libmpi_cxx.so.0 => not found
libmpi.so.0 => not found
libopen-rte.so.0 => not found
 libopen-pal.so.0 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x0000003b54200000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003b57200000)
 libutil.so.1 => /lib64/libutil.so.1 (0x0000003b64400000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003c63800000)
 libm.so.6 => /lib64/libm.so.6 (0x0000003b54600000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003c66600000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b54a00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003b53e00000)
 /lib64/ld-linux-x86-64.so.2 (0x0000003b53a00000)
[pragatheeswaran_at_prairiefire ~]$ mpirun -np 4 a.out
a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot
open shared object file: No such file or directory
a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot
open shared object file: No such file or directory
a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot
open shared object file: No such file or directory
a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot
open shared object file: No such file or directory
[pragatheeswaran_at_prairiefire ~]$

Thanks,
Praga.



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk