Figure: Screenshot of GILDAS MAPPIN in action viewing an imported FITS spectral cube.

Fore information on IRAM GILDAS, see http://www.iram.fr/IRAMFR/GILDAS/

NOTE: Updated for Ubuntu 16.04 Xenial Xerus and above.
Nowadays the readme file on the IRAM webpage gives pretty good instructions for Linux as well: http://www.iram.fr/~gildas/dist/gildas.README

named “gildas-src-mmmyya.tar.gz” where “mmm” is month e.g. Oct, and “yy” is year e.g. 16 and “a” is some letter which signifies the release number, starting with a.

Unpack and enter the directory (it will be installed in the same directory as the unpacked directory, but with “exe” instead of “src” in the name):

tar -xvzf gildas-src-mmmyya.tar
cd gildas-src-mmmyya

For the new GNOME3 framework, we still need to download libgtk2.0. Hence the dependencies are (including optional dependencies):

sudo apt install gfortran g++ libgtk2.0-dev python-dev python-numpy libblas-dev liblapack-dev libfftw3-dev libcfitsio3-dev

export GAG_SEARCH_PATH=”/usr/lib:/usr/lib/x86_64-linux-gnu”
export gagexedir=/home/magnusp/applications/gildas-current

Then configure environment variables and similar with the bash script:

Note: the -s flag with “/usr/lib:/usr/lib/x86_64-linux-gnu” is to add more search paths so that it find CFITSIO and PNG libraries

Here you probably get one warning, something related to some ALMA holography thing, no worries you wont need it. If you do get some other warnings, resolve those dependencies first. After this just run
make

this takes a couple of minutes. Then run
make install

to finally install GILDAS. This will install it in another directory, with “exe” instead. You can move this directory some place else if you want.

Now, to set the environment variables you get a message when the “make install” script finishes, you get a message of what to add, e.g.,:

export GAG_ROOT_DIR=/path-to-gildas/gildas-exe-MMMYYa
export GAG_EXEC_SYSTEM=x86_64-ubuntu13.10-gfortran
source $GAG_ROOT_DIR/etc/bash_profile NB: The part that says “x86_64-ubuntuXX.YY-gfortran” will be specific for your system, e.g. for the latest Ubuntu this should be “x86_64-ubuntu16.04-gfortran”. Just add the statement printed out last in in make install to the end of your .bashrc or .bashrc_profile file (e.g., “nano ~/.bashrc” or “nano ~/.bash_profile“). To remove the start-up message i.e. the one that says something like this, Selecting GILDAS version: mmYYa (21jun16 09:46 cest), executable tree, x86_64-ubuntu16.04-gfortran every time you start a terminal you have to comment out the following lines in the file /path-to-gildas/gildas-exe-MMMYYa/etc/bash_profile : if [ -n “$PS1” ]; then
echo
echo “Selecting GILDAS version: mmYYa (21jun16 09:46 cest), executable tree, \${GAG_EXEC_SYSTEM}”
echo
fi

that is, put hash-tags (#) in front of all the lines.
Done! Now to run a GILDAS program just fire up the terminal and run whatever GILDAS program you want: mapping, class, astro, clic.