Skip to main content


Versions and Availability

About the Software

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.


Softenv defines some variables which point at the library home directory. Use soft-dbq to determine it's name, then use it to add a link option to your build. You may see something like this (the output has been edited for brevity):

$ soft-dbq +gsl-1.15-Intel-13.0.0

This is all the information associated with
the key or macro +gsl-1.15-Intel-13.0.0.
. . .
    gsl_HOME = /usr/local/packages/gsl/1.15/Intel-13.0.0

The compile and build options to use would be:

       -L${gsl_HOME}/lib -lgsl

For more information, please refer to the materials in the Resources section.


Last modified: September 10 2020 11:58:50.