Skip to content

Files

Latest commit

 

History

History
89 lines (64 loc) · 1.88 KB

gdl.md

File metadata and controls

89 lines (64 loc) · 1.88 KB

GDL

GDL (GNU Data Language) is a free / libre open-source program that runs most IDL code. Specifically, GDL claims to be completely IDL 7.x compatible, and has many features from IDL 8. GDL is actively developed on GitHub.

macOS

Install XQuartz

Install the Apple Command Line Tools:

xcode-select --install

Install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install required packages:

brew install wget curl cmake libffi gdbm mpdecimal sqlite glib libpthread-stubs xorgproto libxau libxdmcp libxcb libx11 libxext libxrender cairo eigen isl libmpc gcc hwloc open-mpi fftw jasper little-cms2 graphicsmagick gsl hdf5 netcdf icu4c harfbuzz pango udunits readline

Build and install GDL:

# clone
git clone https://github.com/gnudatalanguage/gdl
cd gdl

# checkout latest tag
tag="v1.0.0-rc.3"
git checkout tags/$tag -b $tag

# create build dir
mkdir build
cd build

# configure
cmake .. \
  -Wno-dev \
  -DREADLINEDIR=/usr/local/opt/readline \
  -DOPENMP=OFF \
  -DWXWIDGETS=OFF \
  -DGEOTIFF=OFF \
  -DHDF=OFF \
  -DUDUNITS2=OFF \
  -DGRIB=OFF \
  -DGLPK=OFF \
  -DSHAPELIB=OFF \
  -DPYTHON=OFF

# build
make -j 4

# run tests
make check

# install
sudo make install

Test your installation:

gdl

You should see promt similar to this:

  GDL - GNU Data Language, Version 1.0.0-rc.3
- For basic information type HELP,/INFO
- Default library routine search path used (GDL_PATH/IDL_PATH env. var. not set): /usr/local/share/gnudatalanguage/lib
- No startup file read (GDL_STARTUP/IDL_STARTUP env. var. not set). 
- Please report bugs, feature or help requests and patches at: https://github.com/gnudatalanguage/gdl

GDL> 

Linux (Ubuntu)

sudo apt install gnudatalanguage