[Nek5000-users] Compilation of nek5000 in ubuntu
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Wed Jan 14 03:58:26 CST 2015
Hi Simon,
1) Download the Open-Mpi file from here :
www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.gz,
unpack it
2) Create a folder ' sudo mkdir /usr/local/openmpi '
3) Go to the unpacked openmpi-1.8.4 folder and do ./configure
--prefix = /usr/local/openmpi
4) Then just type ' make '
5) Then ' make check install '
This will install open-mpi in the folder /usr/local/openmpi, now
your mpi files will be in this folder.
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.
I hope this should work for you.
Best Regards,
Kamal
On 14/01/2015 10:24, nek5000-users at lists.mcs.anl.gov wrote:
> Hi Kamal,
>
> 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.
>
> 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.
>
> Thanks for your reply again.
>
> Sincerely,
> Simon
>
> On 14 Jan, 2015, at 5:08 pm, "nek5000-users at lists.mcs.anl.gov
> <mailto:nek5000-users at lists.mcs.anl.gov>"
> <nek5000-users at lists.mcs.anl.gov
> <mailto:nek5000-users at lists.mcs.anl.gov>> wrote:
>
>> Hi Simon,
>>
>> I would suggest you to reinstall OPEN-MPI in ubuntu and use mpif77
>> compiler.
>>
>> Best,
>> Kamal
>>
>> PS: Install Open Mpi in a separate folder and the add the path in
>> ./bashsrc or to the makenek directly
>>
>>
>> On 14/01/2015 09:30, nek5000-users at lists.mcs.anl.gov wrote:
>>> Hi there,
>>>
>>> I am compiling the eddy example in my ubuntu OS, but the system
>>> returns error with "*Error: Can't open included file 'mpif.h'*". The
>>> fortran compiler in makenek file was changed to gfortran since
>>> mpif77 gives error:
>>> *--------------------------------------------------------------------------**
>>> **Unfortunately, this installation of Open MPI was not compiled with**
>>> **Fortran 77 support. As such, the mpif77 compiler is non-functional.**
>>> **--------------------------------------------------------------------------**
>>> **FATAL ERROR: Basic compiler test for mpif77 failed!*
>>>
>>> Is there anyone experience the same problem when compiling in
>>> ubuntu? You assistance will be greatly appreciated.
>>>
>>> Sincerely,
>>> Simon
>>>
>>>
>>> _______________________________________________
>>> Nek5000-users mailing list
>>> Nek5000-users at lists.mcs.anl.gov
>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>
>> _______________________________________________
>> Nek5000-users mailing list
>> Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov>
>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20150114/3a074702/attachment-0001.html>
More information about the Nek5000-users
mailing list