RE: Help to run gadget2 in macbook

From: Prem Dhungel <>
Date: Mon, 20 Dec 2010 13:20:11 +0530

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
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.
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 <>:

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)
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.
Thank you.


If you wish to unsubscribe from this mailing, send mail to with a subject of: unsubscribe gadget-list
A web-archive of this mailing list is available here:
Received on 2010-12-20 08:50:13

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