Re: Help to run gadget2 in macbook

From: Sander Valcke <Sander.Valcke_at_UGent.be>
Date: Mon, 20 Dec 2010 09:06:42 +0100

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
> <mailto: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
> <mailto: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.
Received on 2010-12-20 09:20:44

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST