Why is this installation of MPICH2 ("compiler wrapper") trying to statically link against "mpichf90" and "mpich" ? Versus dynamically link against the shared object files in the lib directory.<br>
<br>How do I get the compiler wrapper to recognize this ? <br><br>I assume I need to define: <span class="st">LD_LIBRARY_PATH=</span>/usr/lib/mpich2/lib/ ?<br><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 7:07 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">On Fri, Sep 14, 2012 at 6:04 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<b>$ mpif90 -o ex1 ex1.f95</b><div><br>/usr/bin/ld: cannot find -lmpichf90<br>/usr/bin/ld: cannot find -lmpichf90<br>/usr/bin/ld: cannot find -lmpich<br></div>collect2: ld returned 1 exit status<br></blockquote>
<div><br></div></div><div>Send the output of running mpich2version.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No go!<br><br>I used "yum install mpich2", should this bring the compiler wrapper? <br>
<br>Why does the PETSc MPICH2 lib directory have *.a files while the newly installed MPICH2 have *.so files?</blockquote></div></div><br><div>You configured PETSc to link statically. Distributions almost always do shared libraries (*.so) because they can be updated without rebuild all dependencies.</div>
<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>
<br></blockquote></div><br>