The Gnu Data Language (GDL) is a useful open-source alternative to IDL. Although for new astronomical scripting applications we prefer Python, the proprietary IDL system is widely used and there are many astronomical routines written for it that are freely available. This page is a guide to the installation of GDL on an OpenSuse Linux platform.
Download the recent source code
Go to the Sourceforge website:
cp gnudatalanguage-gdl_20120729.tar.gz /usr/local/src
You are ready to compile the code.
Install and compile the source code
The source tree will be in /usr/local/src/ where you made a copy of the downloaded tarfile:
tar xvzf gnudatalanguage-gdl_20120729.tar.gz
This will create a "gdl" directory in /usr/local/src containing the files you will compile.
./configure --without-hdf --with-hdf5
If the configuration does not successfully complete and create "Makefile" in the top level directory, look at the list of errors generated during configuration for clues about missing packages. There will distinctive name that you will have to find in the distribution's repositories. For OpenSuse, you would use yast or yast2 as indicated, then repeat the configure command and the search for rpm's until there are no errors.
Once those issues are resolved, try building the software with
We find that during the build you may see an error such as this one:
libtool: Version mismatch error.
which is corrected by running this command
aclocal; libtoolize --force; autoconf; automake -a
in the toplevel of gdl directory, and then repeating the configure and make commands.
The GDL team notes in their CVS version that they will be using cmake instead of autoconf in the future. The software can be compiled with cmake once you install the package for your distribution. The process would be something like this:
After a successful make operation, install the binaries and library with
Prepare a location for the procedures that you will add:
cp -p -r /usr/local/src/gdl/src/pro ./
Add new procedures
For astronomical use, GDL requires several additional procedures which you have to install separately. Download and save in your long term archive the procedures from these sites: