Hi, <br><br><div class="gmail_quote">On Wed, May 26, 2010 at 9:11 PM, Riccardo Di Meo <span dir="ltr">&lt;<a href="mailto:dimeo@democritos.it">dimeo@democritos.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">Vikas Varshney wrote:<br>
&gt; Dear all,<br>
&gt; I have a very simple question.<br>
&gt;<br>
&gt; I have 2 mpif90 installed on my machine<br>
&gt; one in /usr/local/bin which does not have fortran support. It says<br>
&gt; &quot;Unfortunately, this installation of Open MPU was not compiled with<br>
&gt; Fortran 90 support ...&quot;<br>
&gt; other one is in my local directory which was installed by me. It does<br>
&gt; have fortran compiler (ifort).<br>
&gt;<br>
&gt; When, I try to run configure script to genarate makefile, it assumes<br>
&gt; mpif90 to be the first one and results in unsuccessful configure. So,<br>
&gt; my question is that how can I direct the configure script to look for<br>
&gt; other mpif90 and the assciated libraries and header files. Where do I<br>
&gt; need to make necessary changes? Or do I need to ask my admin to update<br>
&gt; mpif90 in /usr/local/bin (where I dont have writable access)?<br>
<br>
</div></div>Two solutions:<br>
<br>
There&#39;s a MPIF90 environment variable, which can be set to the mpif90<br>
compiler of your choice. Just point it to your mpif90 binary in your<br>
home before configuring QE. This is the standard/correct solution.<br>
<br>
A &quot;one size fits all&quot; solution, which you can use also for other similar<br>
cases ,would be to make your PATH environment variable give precedence<br>
to the location of the mpif90 compiler you want to use:<br>
<br>
export PATH=&lt;location of your mpif90&gt;:$PATH  [bash]<br></blockquote><div><br>you need to set correct LD_LIBRARY_PATH also. Otherwise during 
compilation and run time it may pickup the wrong library and give you error. set this as follows <br>export LD_LIBRARY_PATH=&lt;location of your installed openmpi directory&gt;/lib:$LD_LIBRARY_PATH [bash]<br><br>and one personal experience ,by default  /usr/bin and /usr/local/bin are set as path when u boot up the system. <br>

and now if you  your current mpif90 directory to PATH, it may not pick up the correct one. bcoz u have 2 mpif90, one is in /usr/bin , other is in some directory in you home.  the search order for the mpif90 depends on which folder path is loaded to your path variable first .  So if your PATH variable contains the entry of /usr/bin first then it&#39;ll not pick up the mpif90 from ur home. <br>

<br>I made some changes in my .bash_profile as follows <br><br>line 1 : unset PATH<br>line 2 : export PATH=&quot;${PATH}:&lt;location of your mpif90&gt;&quot;<br>line 3: export PATH=&quot;${PATH}:/bin:/usr/bin:/usr/local/bin&quot; and finally load &quot;/etc/profile&quot; again <br>

line 4: source /etc/profile <br><br>use it with extreme caution ... <br><br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hope this helps,<br>
RDM<br>
<div class="im"><br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Best Regards,<br>
&gt; Vikas<br>
</div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pw_forum mailing list<br>
&gt; <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
&gt; <a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</blockquote></div><br><br>Hope this helps .... <br><br><br>SJH <br clear="all"><br>-- <br>Junior Research Fellow<br>Advance Computing Laboratory<br>Department of Physics, University of Pune<br>Ganeshkhind, Pune - 411007; INDIA<br>

<br>Tel : (+91 20) 25692678; Extn# 408<br><br>~~~***~~~***~~~***~~~***~~~***~~~***~~~***~~~<br>