Re: error compiling gadget

From: Yves Revaz <yves.revaz_at_epfl.ch>
Date: Mon, 20 Nov 2017 21:26:32 +0100

On 20/11/17 21:18, Cynthia Saad (Student) wrote:
>
> right, i was just reading this. i added
>
> OPT += -DH5_USE_16_API
> to the makefile.
>
> then make gives me this
>
>
>
> pm_periodic.c:21:28: fatal error: srfftw_mpi.h: No such file or directory

srfftw_mpi.h missing from the fftw lib.

They are some detailed instructions on how to compile gadget-2 (and
fftw) on mac os or linux here:
https://obswww.unige.ch/lastro/conferences/sf2013/handson.cgi

Cheers,

yves


> #include <srfftw_mpi.h>
> ^
> compilation terminated.
> <builtin>: recipe for target 'pm_periodic.o' failed
> make: *** [pm_periodic.o] Error 1
>
>
> excuse my ignorance
>
> ------------------------------------------------------------------------
> *From:* Yves Revaz <yves.revaz_at_epfl.ch>
> *Sent:* Monday, November 20, 2017 10:14:01 PM
> *To:* gadget-list_at_MPA-Garching.MPG.DE
> *Subject:* Re: [gadget-list] error compiling gadget
>
> Dear Cynthia,
>
> It seems that you are linking with the wrong version of HDF5.
> See
>
> https://wwwmpa.mpa-garching.mpg.de/gadget/gadget-list/0432.html
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwwwmpa.mpa-garching.mpg.de%2Fgadget%2Fgadget-list%2F0432.html&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=9CKxsQq3YqQ7eOomN5XmhiIUFGCsuFSRCZLz4UmU%2BP0%3D&reserved=0>
>
> for more informations.
>
>
> Cheers,
>
> yves
>
> On 20/11/17 21:09, Cynthia Saad (Student) wrote:
>>
>> Dear all,
>>
>> I am new with GADGET and having trouble compiling it. make gives me
>> this error and i can't figure out what to do.
>> https://justpaste.it/1dqg0
>> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjustpaste.it%2F1dqg0&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=VKWpZNkFf8VeoQkaIQzsKcx9ozL645ApM82wDVrCJgY%3D&reserved=0>
>>
>> what am i doing wrong?
>>
>> thank you for your much appreciated help,
>>
>> cynthia
>>
>
> --
>
> ---------------------------------------------------------------------
> Dr. Yves Revaz
> Laboratory of Astrophysics
> Ecole Polytechnique Fédérale de Lausanne (EPFL)
> Observatoire de Sauverny Tel : +41 22 379 24 28
> 51. Ch. des Maillettes Fax : +41 22 379 22 05
> 1290 Sauverny e-mail :Yves.Revaz_at_epfl.ch <mailto:Yves.Revaz_at_epfl.ch>
> SWITZERLAND Web :http://people.epfl.ch/yves.revaz
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpeople.epfl.ch%2Fyves.revaz&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=tS%2Fmf4BJPSBfg0%2FBM2SyYLRNli7Gj1x4wFqxXFxj5PE%3D&reserved=0>
> ---------------------------------------------------------------------


-- 
                                                
---------------------------------------------------------------------
   Dr. Yves Revaz
   Laboratory of Astrophysics
   Ecole Polytechnique Fédérale de Lausanne (EPFL)
   Observatoire de Sauverny     Tel : +41 22 379 24 28
   51. Ch. des Maillettes       Fax : +41 22 379 22 05
   1290 Sauverny             e-mail : Yves.Revaz_at_epfl.ch
   SWITZERLAND                  Web : http://people.epfl.ch/yves.revaz
---------------------------------------------------------------------
Received on 2017-11-20 21:26:34

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET