Tried: "$ ldconfig -p | less" and did a search on "libmpichf90" - nothing. <br><br>"apt-file" is an unrecognized command.<br><br>$ module load mpich2-x86_64<br>ModuleCmd_Load.c(204):ERROR:105: Unable to locate a modulefile for 'mpich2-x86_64'<br>
<br><br><br><div class="gmail_quote">On Sat, Sep 15, 2012 at 6:54 AM, Evren Yurtesen IB <span dir="ltr"><<a href="mailto:eyurtese@abo.fi" target="_blank">eyurtese@abo.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Check with ldconfig -p if you see libmpichf90 in the output.<br>
<br>
The .a files are for static linking, .so files are for dynamic linking. If you dont see the .a files, this simply means that your package does not include them. I have them on my Ubuntu box. (but I dont see them on a Fedora box)<br>
<br>
$ apt-file search 'libmpichf90.a'<br>
libmpich1.0-dev: /usr/lib/mpich/lib/<u></u>libmpichf90.a<br>
libmpich2-dev: /usr/lib/libmpichf90.a<br>
$<br>
<br>
If you are using fedora, try this before compiling, it should load all the necessary paths:<br>
<br>
module load mpich2-x86_64<br>
<br>
To be honest, I was using fedora until recently when I got fed up with it due to similar problems :)<br>
<br>
Thanks,<br>
Evren<div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, 14 Sep 2012, John Chludzinski wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ mpif90 -o ex1 ex1.f95<br>
/usr/bin/ld: cannot find -lmpichf90<br>
/usr/bin/ld: cannot find -lmpichf90<br>
/usr/bin/ld: cannot find -lmpich<br>
collect2: ld returned 1 exit status<br>
<br>
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<br>
installed MPICH2 have *.so files?<br>
<br>
---John<br>
<br>
On Fri, Sep 14, 2012 at 5:54 PM, Anthony Chan <<a href="mailto:chan@mcs.anl.gov" target="_blank">chan@mcs.anl.gov</a>> wrote:<br>
If the mpich2 installation you are using has Fortran 90 binding<br>
correctly, you don't need -L<MPICH2_LIBDIR> when using mpif90.<br>
The compiler wrapper should have taken care of setting all -L<br>
flags to mpich2 libraries, try<br>
<br>
mpif90 -o ex1 ex1.f95<br>
<br>
A.Chan<br>
----- Original Message -----<br>
> I have a small example program I've built and tested before<br>
using<br>
> MPICH2<br>
> that come with the PETSc installation.<br>
><br>
> I just installed MPICH2 on a new machine (without PETSc)<br>
using: yum<br>
> install<br>
> mpich2.<br>
><br>
> I added /usr/lib/mpich2/bin/ to my PATH env. variable and<br>
tried:<br>
> mpif90<br>
> ex1.f95 -L/usr/lib/mpich2/lib/. This resulted in:<br>
><br>
> /usr/bin/ld: cannot find -lmpichf90<br>
> /usr/bin/ld: cannot find -lmpichf90<br>
> /usr/bin/ld: cannot find -lmpich<br>
><br>
> I checked and the PETSc installation has *.a files in the lib<br>
> directory,<br>
> whereas my new installation of MPICH2 has *.so files. What do<br>
I need<br>
> to do<br>
> to get this to compile?<br>
><br>
> ---John<br>
><br>
> ______________________________<u></u>_________________<br>
> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">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/<u></u>mailman/listinfo/mpich-discuss</a><br>
______________________________<u></u>_________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">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/<u></u>mailman/listinfo/mpich-discuss</a><br>
<br>
<br>
<br>
</blockquote>
</div></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>