Fortran 90/95 & Linux OS
Fortran 90/95
development on Linux
Intel Fortran Compiler for Linux
This document explains how to install and configure for use the Intel® Fortran Compiler 10.1 for Linux* product. Installation is a multi-step process. Please read this document in its entirety before beginning and follow the steps in sequence. This is basically the stripped-down version of the official installation instructions provided by the Intel. If you have an older version of the Intel Fortran Compiler for Linux installed, you do not need to uninstall it before installing this version. If you choose to uninstall the older version, you may do so before or after installing this version. Intel® compilers support three platforms: general combinations of processor and operating system type. IA-32 Architecture refers to systems based on 32-bit processors generally compatible with the Intel Pentium® II processor, (for example, Intel® Pentium® 4 processor or Intel® Xeon® processor), or processors from other manufacturers supporting the same instruction set, running a 32-bit operating system ("Linux x86"). Intel® 64 Architecture refers to systems based on IA-32 architecture processors which have 64-bit architectural extensions, (for example, Intel® Core™2 processor family), running a 64-bit operating system ("Linux x86_64"). If the system is running a 32-bit version of the Linux operating system, then IA-32 architecture applies instead. IA-64 refers to systems based on the Intel® Itanium® processor running a 64-bit operating system. Systems based on AMD* processors running a "Linux x86_64" operating system are also supported by Intel compilers for Intel® 64 architecture applications.
Before installing the compiler and tools, you should check the Product Downloads section of the Intel® Software Development Products Registration Center to see if a newer version or update is available. The version on CD or as listed in your electronic download license letter may not be the most current. In order to download and install a compiler from Intel® Premier Support, you will first have to register for support as described under Technical Support.
Requirements to develop IA-32 architecture applications
- A system based on an IA-32 architecture processor (minimum 450 MHz Intel Pentium® II processor or greater - Intel® Core™2 processor family recommended), Intel® 64 architecture processor, or a system based on a compatible AMD* processor
- 512 MB of RAM (1GB recommended)
- 100 MB of disk space, plus an additional 200 MB during installation for the download and temporary files.
- One of the following Linux distributions (this is the list of distributions tested by Intel; other distributions may or may not work and are not recommended - please contact Intel® Premier Support if you have questions):
- Asianux* 3.0
- Debian* 4.0
- Fedora* 7, 8
- Red Hat Enterprise Linux* 3, 4, 5
- SUSE LINUX Enterprise Server* 9, 10
- TurboLinux* 11
- Ubuntu* 7.04, 7.10
- Linux Developer tools component installed, including gcc, g++ and related tools
- Linux component
compat-libstdc++providinglibstdc++.so.5
Requirements to Develop Applications for Intel® 64 Architecture Systems or for AMD* 64-bit Processors
- A system based on an IA-32 or Intel® 64 architecture processor (Intel® Core™2 processor family or Intel® Xeon® processor recommended), or based on an AMD 64-bit processor
- 512 MB of RAM (1GB recommended)
- 300 MB free hard disk space, plus an additional 300 MB during installation for download and temporary files
- 100 MB of hard disk space for the virtual memory paging file. Be sure to use at least the minimum amount of virtual memory recommended for the installed distribution of Linux
- One of the following Linux distributions (this is the list of distributions tested by Intel; other distributions may or may not work and are not recommended - please contact Intel® Premier Support if you have questions):
- Asianux* 3.0
- Debian* 4.0
- Fedora* 7, 8
- Red Hat Enterprise Linux* 3, 4, 5
- SGI ProPack* 5
- SUSE LINUX Enterprise Server* 9, 10
- TurboLinux* 11
- Ubuntu* 7.04, 7.10
- Linux Developer tools component installed, including gcc, g++ and related tools
- Linux component
compat-libstdc++providinglibstdc++.so.5 - Linux component containing 32-bit libraries (may be called
ia32-libs)
Requirements to Develop IA-64 Architecture Applications
- A system based on an Intel® Itanium® processor
- 512 MB of RAM (1 GB recommended)
- 150 MB of disk space, plus an additional 200 MB during installation for the download and temporary files
- One of the following Linux distributions (this is the list of distributions tested by Intel; other distributions may or may not work and are not recommended - please contact Intel® Premier Support if you have questions):
- Asianux* 3.0
- Debian* 4.0
- Red Hat Enterprise Linux* 3, 4, 5
- SUSE LINUX Enterprise Server* 9, 10
- TurboLinux* 11
- Linux Developer tools component installed, including gcc, g++ and related tools
- Linux component
compat-libstdc++providinglibstdc++.so.5
Before installing the compiler and tools, you should check the Product Downloads section of the Intel® Software Development Products Registration Center to see if a newer version or update is available. The version on CD or as listed in your electronic download license letter may not be the most current. In order to download and install a compiler from Intel® Premier Support, you will first have to register for support as described under Technical Support.
At the Intel® Software Development Products Registration Center, the compiler is provided in several different packages to meet your needs. The filenames and descriptions of the packages are:
l_fc_p_10.1.xxx.tar.gz
If you have licensed Intel® Fortran Compiler Professional Edition, download and installation of the Intel® Math Kernel Library is separate. Please refer to the Installation Guide and/or Release Notes of that component for details.
Installing the Compiler and Tools
The default installation directories, referred to elsewhere in this document as
<install-dir> and <idb-install-dir>,
are:/opt/intel/fc/10.1.xxx (for IA-32 and IA-64)/opt/intel/fce/10.1.xxx (for Intel® 64)/opt/intel/idb/10.1.xxx (for IA-32 and
IA-64) /opt/intel/idbe/10.1.xxx (for Intel® 64) Note that the path includes the full version number including update number. This means you can keep multiple versions of the compiler installed on the system. If you do not want to keep multiple versions, you can delete the older directories before or after installing the new version.
Perform the following steps to install the compiler:
1. Unpack the compiler package in a directory to which you have write access.
> tar -xvf l_fc_x_10.1.xxx.tar or
> tar -zxvf l_fc_x_10.1.xxx.tar.gz2. Run the installation script
Execute the install script in the directory where the tar file was extracted.
> cd l_fc_x_10.1.xxx> ./install.sh3. If you are not
logged in as root, you will be asked if
you want to install as root, install as root using sudo, or to install
without root privileges. Installing as root (using sudo if you have
that privilege) is recommended, as that will update the system RPM
database. Use the install as current user
option if you want to install to a private area. 4. The install script will display a series of options, allowing you to begin installation or view documentation. Type
1
and press enter to begin the compiler installation. 5. You will then be prompted to enter your Intel Fortran Compiler for Linux serial number. The serial number was provided to you when you purchased the product, either in an e-mail from the reseller or on a sticker attached to the CD-ROM package. You may also choose to enter a path to an existing license file. Make your selection and then follow the prompts.
6. The install script then does some prerequisite checking and displays which Intel software development tools are installed, if any, and then offers a choice of a Typical Install or a Custom Install. Selection of a Typical Install is recommended - type
1 and
press enter. 7. Press enter again to display the license agreement. After the license agreement is displayed, you are prompted to accept or reject the license. If you accept the license, type
accept
and press enter. If you reject the license, type reject
and press enter to end the install. 8. The install will then continue - you may be prompted to accept further license agreements, specify install paths or to press enter to proceed through install steps.
9. At the end of the installation, if you entered a serial number you may be prompted to register for Intel® Premier Support. Registration gives you full access to Intel® Premier Support for the length of your support term (typically one year for licenses purchased with support), including all updates and new versions. Without registering, you will be unable to install or use product updates. Enter your e-mail address, when prompted, to register. (If you already have an Intel® Premier Support account, enter its registered e-mail address.) You will then receive an e-mail with registration information including an initial password. If you do not wish to register, or if you have already registered, press
x and press enter to exit.10. After registration, the install script exits.
Setting Up the Compiler Environment
The programs in the Intel Fortran Compiler 10.1 for Linux product rely on the environment variables
PATH and LD_LIBRARY_PATH.
The installation script (install.sh) creates
compiler environment script files (ifortvars.sh/idbvars.sh)
that set these variables. It is strongly recommended that you add those
script files into your login script (.login
file). Once the variables are set in the ".login"
file there is no need to run the script
files for each session. source the script to setup the compiler
environment:> source
<install-dir>/bin/ifortvars.sh(.csh) to use ifort
> source
<idb-install-dir>/bin/idbvars.sh(.csh) to use idb
The installation program also creates compiler configuration files named
<install-dir>/bin/ifort.cfg
that contain common settings for all compilations. You can edit these
files to add additional default options. Note, if
you install a compiler update package, you need to save the
configuration file, if you have modified it, to another filename so
that the installation doesn't overwrite your modified file. If you have
any problems running the compiler, please make sure a valid license
file (*.lic) is located in the license directory. By default this is /opt/intel/licenses.
The compiler uses the environment variable INTEL_LICENSE_FILE
to locate the license file. If you still have problems, please submit
an issue to Intel® Premier Support. See the Technical Support section
of this document
for details.Uninstalling the Compiler and Tools
Please follow the steps below to uninstall the Intel Compiler and Debugger:
1. If you installed as
root, you will need to
log in as root2. To uninstall the compiler:
<install-dir>/bin/uninstall.sh
or if you've installed the compiler to the default directory, use
/opt/intel/fc/10.1.xxx/bin/uninstall.sh or/opt/intel/fce/10.1.xxx/bin/uninstall.sh on
Intel® 64 architecture systems 3. To uninstall the debugger:
<idb-install-dir>/bin/uninstall.sh
or if you've installed the debugger to the default directory, use
/opt/intel/idb/10.1.xxx/bin/uninstall.sh or/opt/intel/idbe/10.1.xxx/bin/uninstall.sh on
Intel® 64 architecture systemsObtaining Technical Support
If you did not register your compiler during installation, please do so at the Intel® Software Development Products Registration Center. Registration entitles you to free technical support, product updates and upgrades for the duration of the support term. For information about how to find Technical Support, Product Updates, Users Forums, FAQs, tips and tricks, and other support information, please visit: http://www.intel.com/software/products/support/flin.
Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The information here is subject to change without notice. Do not finalize a design with this information. The products described in this document may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request. You might want to contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order.