Personal tools


Installing custom compilers

Commercial Fortran or C-compilers can make quite a difference when it comes to time-consuming simulations or other calculations.

1. Intel Fortran Compiler

  • Obtain the compiler matching your architecture from:

    Note: The free non-commercial package may be a good starting point for testing but check their license conditions.

  • Install dependencies. For Ubuntu these are described here:

    On my Ubuntu 7.10 (AMD64) I needed the following:

    sudo apt-get install gcc build-essential libc6-dev
    sudo apt-get install ia32-libs g++-multilib libc6-dev-i386
    sudo apt-get install ia32-libs g++-multilib libc6-dev-i386
  • Unpack your compiler package and run the installation script, e.g.:

    tar xvzf l_fc_p_10.1.015_intel64.tar.gz
    cd l_fc_p_10.1.015_intel64
    sudo ./
  • Follow the interactive instructions. I replaced the default installation path by 'usr/local/lib/intel'.

  • Add the compilers to your PATH:

    cd /usr/local/bin
    sudo ln -s ../lib/intel/fce/10.1.015/bin/ifort .
    sudo ln -s ../lib/intel/fce/10.1.015/bin/fpp .
    sudo ln -s ../lib/intel/idbe/10.1.015/bin/idb .
    sudo ln -s ../lib/intel/idbe/10.1.015/bin/idb-e .

2. GNU Fortran Compiler

The Debian/Ubuntu Solution:

sudo apt-get install gfortran
sudo ln -s /usr/bin/gfortran /usr/bin/g95

Alternatively, download a binary or source package from: