thanks for reply.
The cluster has been installed with openMPI and mpich2.
Do I still use MPI wrapper compiler to re-compile it ?
What is meaning of "by compiling an MPI program using the C API, before building Boost."
Any help is appreciated. 
Jack 
Aug. 3  2010

> From: troyer@phys.ethz.ch
> To: boost-users@lists.boost.org
> Date: Tue, 3 Aug 2010 15:13:17 -0600
> Subject: Re: [Boost-users] boost MPI install error
>
>
>
> Sent from my iPad
>
> On Aug 3, 2010, at 10:54 AM, Jack Bryan <dtustudy68@hotmail.com> wrote:
>
> > 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.
> >
>
> Hi Jack,
>
> Can you sure to specify the right MPI wrapper compiler and make sure that it works, by compiling an MPI program using the C API, before building Boost.
>
> Matthias
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users