This is an old revision of the document!
Log in to the cluster, wget the source code and unpack, e.g.
localuser@my_linux:~ $ ssh username@lengau.chpc.ac.za Last login: Fri Apr 01 15:00:00 2016 from 10.128.23.235 [username@login1 ~]$ wget http://wwwmpa.mpa-garching.mpg.de/gadget/gadget-2.0.7.tar.gz [username@login1 ~]$ tar zxvf gadget-2.0.7.tar.gz
Navigate into the Gadget-2.0.7/Gadget2/ directory - this is where the Makefile is located. Edit the Makefile as required (note example Makefiles and parameter files located in Gadget-2.0.7/Gadget2/parameterfiles/). To compile Gadget2, run make.