Oh,yes.I make a input mistake.It's libmpich.a,not libmpi.a.i can find it. I thought libpthread.a belongs to mpich2 lib.Sorry to trouble you and thank you for your help again.<br><br><div class="gmail_quote">2012/8/28 Anthony Chan <span dir="ltr"><<a href="mailto:chan@mcs.anl.gov" target="_blank">chan@mcs.anl.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
MPICH2 does not provide libmpi.a, it provides libmpich.a or the .so<br>
version. You should modify LAMMPS to use MPI compiler wrapper(mpicc/mpif90)<br>
to compile/link. The compiler wrapper will take care of the locations<br>
of various libraries. BTW, pthread library should be provided by<br>
your system.<br>
<br>
A.Chan<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> Hi,everyone. Now I am install mpich2-1.3.1 and then link it to LAMMPS<br>
> which<br>
> need libmpi.a, libmpl.a and lib.pthread.a. Unfortunately, I can't find<br>
> libpthread.a file in lib directory and other files. Then I turn to<br>
> mpich2-1.4.1p1. The result is the same.I followed the README file to<br>
> install them step by step. No error was encountered during<br>
> installation.<br>
> what can i do ??? Thank you for your time in reading my mail and<br>
> appreciate<br>
> your helps in advance.<br>
> Best wishes<br>
> Z.Y.Qiu<br>
> 08/27/2012<br>
><br>
</div></div>> _______________________________________________<br>
> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br>