Dear All:

I am trying to install boost on MPI clsuter with MPICH2. 

After ./bjam install, I compile a test program provided by boost.org .

But I got errors: 
The program is :
-----------------------------------------------------------------
#include <iostream>
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>

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;
}
--------------------------------------------------------------

Errors: 
------------------------------------------------------------------
mpic++ -o testp2p test_p2p.cpp -I/home/boost_2010_8_1/boost_1_43_0 -L/home/boost_2010_8_1/boost_1_43_0/stage/lib -lboost_mpi -lboost_serialization
/usr/bin/ld: warning: liblam.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: liblamf77mpi.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: liblammpi++.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link)
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_short'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_comm_map'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `op_intercept'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_errors_return'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Intracomm::current_op'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_comm_world'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned_char'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_char'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_err_map'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_group_empty'
/home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_packed'
collect2: ld returned 1 exit status

-------------------------------------------------------------------

It seems that it needs LAM/MPI. 

But, the LAM/MPI has been installed: 

PATH=/home/openmpi_123/bin:/home/boost_2010_8_1/boost_1_43_0: .......

I used ./bjam --prefix=mypath
and then ./bjam 
and then ./bjam install
Any help is appreciated. 

Any help is appreciated. 

thanks

Jack

Aug. 3  2010