This web page provides the source code for a portable, object-based Fortran interface to the GNU scientific library a collection of numerical routines for scientific computing. The package is licensed under the GPL. Please be aware that use of this software package is at your own risk.

  • Download version 1.5.0 (for use with GSL 2.6)
  • Browse README and NEWS files (also included in source package)

The code repository is maintained at Github. Users of FGSL are encouraged to send bug reports via the Github ticket system.

Table of released versions

1.5.0for use with GSL 2.6
1.4.0for use with GSL 2.5
1.3.0for use with GSL 2.4
1.2.0for use with GSL 2.3
1.1.0for use with GSL 2.1. It can also be used with GSL 2.2.1, but does not cover new features in that release
1.0.0please continue to use this together with GSL 1.x

Further information

This section particularly discusses the installation procedures for the most common Linux distributions, as well as for MacOS X. Credits are due to Tom Schoonjans for providing the builds and the below information.

Redhat EL/Fedora/CentOS/Scientific Linux 6 distributions

Gain access to the repository with:

  • Redhat EL6

    su -c 'rpm -Uvh'

  • Redhat EL7

    su -c 'rpm -Uvh'

  • Fedora (19,20,21,23)

    su -c 'rpm -Uvh'

Afterwards download the packages with:

su -c 'yum install fgsl fgsl-devel fgsl-doc'

Debian and Ubuntu

Import our public key:

curl | sudo apt-key add -

Next, add the package download location corresponding to your distribution to the /etc/apt/sources.list file (as root): 

  • Debian Squeeze:
    deb squeeze stable
    deb-src squeeze stable
  • Debian Wheezy:
    deb wheezy stable
    deb-src wheezy stable
  • Debian Jessie:
    deb jessie stable
    deb-src jessie stable
  • Ubuntu Utopic:
    deb [arch=amd64] utopic stable
    deb-src utopic stable
  • Ubuntu Precise:
    deb [arch=amd64] precise stable
    deb-src precise stable
  • Ubuntu Quantal, Raring and Saucy: 
    FGSL support for these releases has been dropped, in line with official Ubuntu policy.
  • Ubuntu Trusty:
    deb [arch=amd64] trusty stable
    deb-src trusty stable
  • Ubuntu Vivid:
    deb [arch=amd64] vivid stable
    deb-src vivid stable
  • Ubuntu 15.10 Wily:
    deb [arch=amd64] wily stable
    deb-src wily stable

Update the apt cache with:

sudo apt-get update

Afterwards, you should be able to install fgsl with:

sudo apt-get install libfgsl0 libfgsl0-dev libfgsl0-doc


MacPorts provides builds of FGSL for installation on systems running MacOS X.

Forum article

The August 2007 edition of SIGPLAN Fortran Forum contains an article on some aspects of FGSL. A correction for an error in a section of this article which describes some ideas for future developments is also available.

  • No labels