Re: Help to run gadget2 in macbook

From: Jay Jay Billings <jayjaybillings_at_gmail.com>
Date: Wed, 22 Dec 2010 09:23:01 -0500

Prem,

Volker lists the necessary compilation flags in the Gadget2 users manual.

Jay

On Wed, Dec 22, 2010 at 9:19 AM, Cameron McBride
<cameron.mcbride_at_gmail.com> wrote:
>
> Prem,
>
> You didn't compile FFTW with all the proper flags.  These are generic
> problems and not really Gadget specific. You should consult FFTW docs,
> and try a few google searches to install what you need.
>
> At a minimum, the name of that library suggests you need to include
> the following two flags in the ./configure line for FFTW 2.1.5:
> --enable-mpi  --enable-float
>
> btw, modern versions of OSX have mpi preinstalled (yes, even the
> laptops).  I believe it's based off LAM (now OpenMPI, as LAM has been
> subsumed into it).  You might not need the MPI libraries.
>
> HTH,
>
> Cameron
>
> On Wed, Dec 22, 2010 at 07:56, Prem Dhungel <premrd_at_hotmail.com> wrote:
>> Hi Sander,
>>
>> I successfully completed "configure, make and sudo make install" for each of
>> the following:
>> fftw-2.1.5
>> lam-7.0.6 for MPI
>> gsl
>>
>> Also commented out the HDF5. But for the Gadget2, I still have the following
>> error:
>>
>>
>> prems-macbook:~ prem$ cd gadget2
>> prems-macbook:gadget2 prem$ make
>> mpicc                main.o  run.o  predict.o begrun.o endrun.o global.o
>> timestep.o  init.o restart.o  io.o accel.o   read_ic.o  ngb.o system.o
>> allocate.o  density.o gravtree.o hydra.o  driftfac.o domain.o  allvars.o
>> potential.o forcetree.o   peano.o gravtree_forcetest.o pm_periodic.o
>> pm_nonperiodic.o longrange.o   -g     -lgsl -lgslcblas -lm  -lsrfftw_mpi
>> -lsfftw_mpi -lsrfftw -lsfftw    -o  Gadget2
>> ld: library not found for -lsrfftw_mpi
>> collect2: ld returned 1 exit status
>> make: *** [Gadget2] Error 1
>>
>> Thanks.
>> Prem
>>
>> ________________________________
>> Date: Mon, 20 Dec 2010 09:06:42 +0100
>> From: Sander.Valcke_at_UGent.be
>> To: gadget-list_at_MPA-Garching.MPG.DE
>> Subject: Re: [gadget-list] Help to run gadget2 in macbook
>>
>> Hi Prem,
>>
>> you'll have to solve the compilation errors in order to be able to run
>> Gadget 2. In this case it seems that you have to install the gsl libraries,
>> and you might want to switch off HDF5 support (comment out -DHAVE_HDF5) in
>> the Makefile. If you look in the first pages of the user manual, all the
>> required steps are listed there in detail (you also have to install fftw
>> 2.x).
>>
>> cheers,
>>
>> Sander
>>
>> Prem Dhungel wrote:
>>
>> Hi Florian!
>>
>> When I tried to "make" within gadjet2 directory, the error messages are like
>> this:
>>
>> prems-macbook:~ prem$ cd gadget2
>> prems-macbook:gadget2 prem$ make
>> mpicc    -O3 -Wall -DPERIODIC  -DUNEQUALSOFTENINGS -DPEANOHILBERT
>> -DWALLCLOCK    -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
>> -I/usr/common/pdsoft/include     -c -o main.o main.c
>> In file included from main.c:7:
>> allvars.h:20:25: error: gsl/gsl_rng.h: No such file or directory
>> In file included from main.c:7:
>> allvars.h:157: error: syntax error before '*' token
>> allvars.h:157: warning: type defaults to 'int' in declaration of
>> 'random_generator'
>> allvars.h:157: warning: data definition has no type or storage class
>> In file included from main.c:8:
>> proto.h:10:18: error: hdf5.h: No such file or directory
>> In file included from main.c:8:
>> proto.h:193: error: syntax error before 'handle'
>> make: *** [main.o] Error 1
>>
>> Thank you.
>> Prem
>> ________________________________
>> From: florian.buerzle_at_uni-konstanz.de
>> Date: Sun, 19 Dec 2010 16:48:54 +0100
>> To: gadget-list_at_MPA-Garching.MPG.DE
>> Subject: Re: [gadget-list] Help to run gadget2 in macbook
>>
>>
>>
>> Hi Prem!
>> Am 19.12.2010 um 08:56 schrieb Prem Dhungel <premrd_at_hotmail.com>:
>>
>> Hi every one,
>>
>> I need to do the simulation for galaxy formation using Gadget2.
>> But before doing the large full-fledged simulation, I want to do small ones
>> in my MacBook and be familiar with gadget.
>>
>> I downloaded and installed/configured the necessary components:
>> gadget 2.0.6
>> gcc 4.0
>> HDF5 1.6.10  (mac-intel-x86_64-static version)
>> fftw-2.1.5
>> lam-7.0.6 for MPI
>>
>> All these are in the directory \Users /prem
>>
>> When I type the command "mpirun -np 2 ./Gadget2 myparameterfile.param" in
>> Terminal, the following error message comes:
>>
>> Failed to find or execute the following executable:
>> Host:       prems-macbook.local
>> Executable: ./Gadget2
>> Cannot continue.
>>
>>
>> It seems that it very simple silly mistake, but I am not able to figure it
>> out as I'm not so used to in Terminal.
>> Can anybody help please?
>>
>>
>> I installed Gadget on a Macbook, too, but I don't think your problem is
>> Macbook specific. It seems that the executable is not found...Have you
>> actually generated the executale by typing "make"? If yes, is it in the
>> current directory or somewhere else? Does it have a name different than
>> Gadget2?
>> If these hints do not help, please describe your workflow in Terminal in
>> more detail.
>> Cheers
>> Florian
>>
>> Thank you.
>> Prem
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> minimalist_at_MPA-Garching.MPG.de with a subject of:  unsubscribe gadget-list
>> A web-archive of this mailing list is available here:
>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>>
>> --
>> --------------------------------------------------
>> | Sander Valcke                                  |
>> | Sterrenkundig Observatorium, Universiteit Gent |
>> | Krijgslaan 281 S9, B-9000 Gent, Belgium        |
>> | phone +32-9-264-4796  |  fax +32-9-264-4989    |
>> | http://sourceforge.net/apps/wordpress/hyplot/  |
>> --------------------------------------------------
>> Paranoia doesn't mean the whole world isn't out to get you.
>> --------------------------------------------------
>> Disclaimer:
>> By sending an email to ANY of my addresses you are agreeing that:
>>    1. I am by definition, "the intended recipient"
>>    2. All information in the email is mine to do with as I see fit and
>>       make such financial profit, political mileage, or good joke as
>>       it lends itself to.
>>    3. I may take the contents as representing the views of your company.
>>    4. This overrides any disclaimer or statement of confidentiality
>>       that may be included in your message.
>>
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> minimalist_at_MPA-Garching.MPG.de with a subject of:  unsubscribe gadget-list
>> A web-archive of this mailing list is available here:
>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>>
>>
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of:  unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
Received on 2010-12-22 15:23:01

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