Installation Intel® Fortran Compiler for Linux on KNOPPIX

1. Download

Intel® Fortran Compiler for Linux (non-commercial package) can be downloaded from Intel®.  We are required to register by providing the email address to receive the instruction for downloading and a license file.

2. Extract and convert

l_fc_p_9.0.021.tar.gz is around 125 MB.  After extraction, ifort (RPM-based) will be located in l_fc_p_9.0.021 directory. We can use alien to convert .rpm to .deb for installation on KNOPPIX.


$ tar -xvrf  l_fc_p_9.0.021.tar.gz
$ cd l_fc_p_9.0.021
$ alien intel-ifort9-9.0-021.i386.rpm

3. Install

First of all, we have to login as root for installation. Then install the converted file, intel-ifort9_9.0-22_i386.deb. (Noted that its file name has been changed)


$ dpkg --install intel-ifort9_9.0-22_i386.deb

4. Post-install

ifort will be installed under /opt/intel/fc/9.0/bin/.   We need to modify ifort, ifortvars.csh and ifortvars.sh by replacing <INSTALLDIR> with the full path "/opt/intel/fc/9.0"  For example, we can modify ifort as following:


#!/bin/sh
 
if [ -z "$INTEL_LICENSE_FILE" ]
then
 INTEL_LICENSE_FILE="<INSTALLDIR>/licenses:/opt/intel/licenses";
 INTEL_LICENSE_FILE="/opt/intel/fc/9.0/licenses:/opt/intel/licenses";
else
 INTEL_LICENSE_FILE="$INTEL_LICENSE_FILE:<INSTALLDIR>/licenses:/opt/intel/licenses";
 INTEL_LICENSE_FILE="$INTEL_LICENSE_FILE:/opt/intel/fc/9.0/licenses:/opt/intel/licenses";
fi
export INTEL_LICENSE_FILE;
 
if [ -z "$LD_LIBRARY_PATH" ]
then
 LD_LIBRARY_PATH="<INSTALLDIR>/lib";
 LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib";
else
 LD_LIBRARY_PATH="<INSTALLDIR>/lib:$LD_LIBRARY_PATH";
 LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib:$LD_LIBRARY_PATH";
fi
export LD_LIBRARY_PATH;
 
if [ -z "$PATH" ]
then
 PATH="<INSTALLDIR>/bin";
 PATH="/opt/intel/fc/9.0/bin";
else
 PATH="<INSTALLDIR>/bin:$PATH";
 PATH="/opt/intel/fc/9.0/bin:$PATH";
fi
export PATH;
 
export -n IA32ROOT; unset IA32ROOT;
 
if [ $# != 0 ]
then
 exec -a "<INSTALLDIR>/bin/ifort" <INSTALLDIR>/bin/ifortbin "$@";
 exec -a "/opt/intel/fc/9.0/bin/ifort" /opt/intel/fc/9.0/bin/ifortbin "$@";
else
 exec -a "<INSTALLDIR>/bin/ifort" <INSTALLDIR>/bin/ifortbin;
 exec -a "/opt/intel/fc/9.0/bin/ifort" /opt/intel/fc/9.0/bin/ifortbin;
fi

or declare INSTALLDIR=/opt/intel/fc/9.0 and replace <INSTALLDIR> with $INSTALLDIR


#!/bin/sh
INSTALLDIR=/opt/intel/fc/9.0
if [ -z "$INTEL_LICENSE_FILE" ]
then
 INTEL_LICENSE_FILE="<INSTALLDIR>/licenses:/opt/intel/licenses";
 INTEL_LICENSE_FILE="$INSTALLDIR/licenses:/opt/intel/licenses";
else
 INTEL_LICENSE_FILE="$INTEL_LICENSE_FILE:<INSTALLDIR>/licenses:/opt/intel/licenses";
 INTEL_LICENSE_FILE="$INTEL_LICENSE_FILE:$INSTALLDIR/licenses:/opt/intel/licenses";
fi
export INTEL_LICENSE_FILE;
 
if [ -z "$LD_LIBRARY_PATH" ]
then
 LD_LIBRARY_PATH="<INSTALLDIR>/lib";
 LD_LIBRARY_PATH="$INSTALLDIR/lib";
else
 LD_LIBRARY_PATH="<INSTALLDIR>/lib:$LD_LIBRARY_PATH";
 LD_LIBRARY_PATH="$INSTALLDIR/lib:$LD_LIBRARY_PATH";
fi
export LD_LIBRARY_PATH;
 
if [ -z "$PATH" ]
then
 PATH="<INSTALLDIR>/bin";
 PATH="$INSTALLDIR/bin";
else
 PATH="<INSTALLDIR>/bin:$PATH";
 PATH="$INSTALLDIR/bin:$PATH";
fi
export PATH;
 
export -n IA32ROOT; unset IA32ROOT;
 
if [ $# != 0 ]
then
 exec -a "<INSTALLDIR>/bin/ifort" <INSTALLDIR>/bin/ifortbin "$@";
 exec -a "$INSTALLDIR/bin/ifort" /opt/intel/fc/9.0/bin/ifortbin "$@";
else
 exec -a "<INSTALLDIR>/bin/ifort" <INSTALLDIR>/bin/ifortbin;
 exec -a "$INSTALLDIR/bin/ifort" /opt/intel/fc/9.0/bin/ifortbin;
fi

Do not forget to modify ifortvars.csh and ifortvars.sh also. Finally, copy a license file, noncommercial_for_??????.lic, to /opt/intel/fc/9.0/licenses.

references:
http://cryoem.berkeley.edu/spider/ifort_inst.shtml
http://www.argv.org/~chome/intelcc/

Last update 30/08/05