|
Boost-Build : |
Subject: Re: [Boost-build] problem with boost mpi
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-11-25 14:51:35
On Wednesday 25 November 2009 22:29:41 praga wrote:
> 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
You should either add bin/boostpath/lib to the LD_LIBRARY_PATH environment variable,
or you should add -R bin/boostpath/lib/ option to the command line above -- in
addition to -L.
> libmpi_cxx.so.0 => not found
> libmpi.so.0 => not found
> libopen-rte.so.0 => not found
> libopen-pal.so.0 => not found
I have no idea about these. Could it be that your MPI is not installed system-wide,
but to a custom location? In that case, you need to do the same LD_LIBRARY_PATH/-R
dance for the corresponding library directories.
- Volodya
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