<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Simon, <br>
<br>
Could you try this ' export LD_LIBRARY_PATH=/usr/local/opempi/lib
' and then launching "./makenek eddy_uv". <br>
<br>
If that does not help, There are a couple of things to do : <br>
<br>
1) sudo apt-get update <br>
2) sudo apt-get upgrade <br>
3) Sudo apt-get install build essential <br>
<br>
do the above commands to install some Linux libraries and try
recompiling openmpi with ' ./configure --prefix=/usr/local/openmpi
FC=/usr/local/gfortran (path of your gfortran). <br>
<br>
just take look at the output when you do ' sudo make ' and see If
everything is going perfectly.<br>
<br>
<br>
Best, <br>
Kamal <br>
<br>
PS: Check If your gfortran works properly <br>
<br>
<br>
<div class="moz-cite-prefix">On 14/01/2015 12:31,
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.13425.1421235111.3424.nek5000-users@lists.mcs.anl.gov"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Kamal,</p>
<p><br>
</p>
<p>I am really thankful that you give so detailed information on
compilation of Open-mpi. Everything went well when following
your first 4 steps except for Step 5 in which creation of dir
/sur/local/openmpi/share was denied. So I re-do Step 5 with
command "sudo make check install", and then it compiled well
without errors. </p>
<p><br>
</p>
<p>Then I followed Step 6 but it was found that no mpif77 nor
mpicc files were under dir /use/local/openmpi/. After checking
files under dir /use/local/openmpi/bin, there exist mpiff77
and mpicc files. So finally I changed makenek to "F77 =
/usr/local/openmpi/bin/mpif77" and " CC =
/usr/local/openmpi/bin/mpicc" and then type "./makenek
eddy_uv".</p>
<p><br>
</p>
<p>Unluckily, the error came again as following:</p>
<p>--------------------------------------------------------------------------<br>
Unfortunately, this installation of Open MPI was not compiled
with<br>
Fortran 77 support. As such, the mpif77 compiler is
non-functional.<br>
--------------------------------------------------------------------------<br>
FATAL ERROR: Basic compiler test for
/usr/local/openmpi/bin/mpif77 failed!<br>
</p>
<p><br>
</p>
<p>It seems fortran 77 not ready yet. Do you have any comments
about it? </p>
<p><br>
</p>
<p>Thanks,</p>
<p>Simon<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>
<a class="moz-txt-link-rfc2396E" href="mailto:nek5000-users-bounces@lists.mcs.anl.gov"><nek5000-users-bounces@lists.mcs.anl.gov></a> on behalf
of <a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-rfc2396E" href="mailto:nek5000-users@lists.mcs.anl.gov"><nek5000-users@lists.mcs.anl.gov></a><br>
<b>Sent:</b> Wednesday, 14 January, 2015 5:58 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a><br>
<b>Subject:</b> Re: [Nek5000-users] Compilation of nek5000
in ubuntu</font>
<div> </div>
</div>
<div> Hi Simon, <br>
<br>
1) Download the Open-Mpi file from here : <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.gz">www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.gz</a>,
unpack it
<br>
2) Create a folder ' sudo mkdir /usr/local/openmpi '<br>
3) Go to the unpacked openmpi-1.8.4 folder and do
./configure --prefix = /usr/local/openmpi
<br>
4) Then just type ' make ' <br>
5) Then ' make check install ' <br>
<br>
This will install open-mpi in the folder
/usr/local/openmpi, now your mpi files will be in this
folder.
<br>
<br>
6) Open makenek and change ' F77 =
/use/local/openmpi/mpif77 ' and ' CC =
/usr/local/openmpi/mpicc ' or you can the path to ./bashrc
file if you don't want to do this step.
<br>
<br>
I hope this should work for you. <br>
<br>
<br>
Best Regards, <br>
Kamal <br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 14/01/2015 10:24, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:nek5000-users@lists.mcs.anl.gov">
nek5000-users@lists.mcs.anl.gov</a> wrote:<br>
</div>
<blockquote type="cite">
<div>Hi Kamal,</div>
<div><br>
</div>
<div>Thank you very much for the suggestion. As I am a
Linux user at very basic level, could you please tell a
little bit more details on reinstalling open-mpi? Are u
suggesting me reinstall the same version as installed in
ubundu, or any other version? If it should be a certain
version, I will download and install in.</div>
<div><br>
</div>
<div>To tell the truth, I installed a package f2c that can
translate fortran77 to c language, but it does not help
here. Do you think do u have to install fortran77 in
Ubuntu? It is said installing f77 will cause more errors
in the latest version of Ubuntu.</div>
<div><br>
</div>
<div>Thanks for your reply again.</div>
<div><br>
</div>
<div>Sincerely,</div>
<div>Simon</div>
<div><br>
On 14 Jan, 2015, at 5:08 pm, "<a moz-do-not-send="true"
href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>"
<<a moz-do-not-send="true"
href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div> Hi Simon, <br>
<br>
I would suggest you to reinstall OPEN-MPI in ubuntu
and use mpif77 compiler. <br>
<br>
Best, <br>
Kamal <br>
<br>
PS: Install Open Mpi in a separate folder and the add
the path in ./bashsrc or to the makenek directly
<br>
<br>
<br>
<div class="moz-cite-prefix">On 14/01/2015 09:30, <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:nek5000-users@lists.mcs.anl.gov">
nek5000-users@lists.mcs.anl.gov</a> wrote:<br>
</div>
<blockquote type="cite">Hi there,<br>
<br>
I am compiling the eddy example in my ubuntu OS, but
the system returns error with "<b>Error: Can't open
included file 'mpif.h'</b>". The fortran compiler
in makenek file was changed to gfortran since mpif77
gives error:
<br>
<b>--------------------------------------------------------------------------</b><b><br>
</b><b>Unfortunately, this installation of Open MPI
was not compiled with</b><b><br>
</b><b>Fortran 77 support. As such, the mpif77
compiler is non-functional.</b><b><br>
</b><b>--------------------------------------------------------------------------</b><b><br>
</b><b>FATAL ERROR: Basic compiler test for mpif77
failed!</b><br>
<br>
Is there anyone experience the same problem when
compiling in ubuntu? You assistance will be greatly
appreciated.
<br>
<br>
Sincerely,<br>
Simon<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Nek5000-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Nek5000-users mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a></span><br>
<span><a moz-do-not-send="true"
href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a></span><br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Nek5000-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Nek5000-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
<br>
</body>
</html>