CentOS 5.2 Linux 下安装 Intel fortran 编译器
2012-5-11
进入 http://software.intel.com/en-us/articles/intel-software-developer-support,
选择 Tools & Downloads, 选择 Free Non-Commercial(非商业版),进入页面后,选择接受,
然后选择 Intel® Fortran Composer XE 2011 for Linux 进行下载,此后,弹出一个页面,
需要用户提供一些信息,包括邮箱。intel会把一个licence文件发到你邮箱里,用于安装时的激活。
这里下载了64位版本 l_fcompxe_intel64_2011.10.319.tar.gz。
下载链接是:
64位:
http://registrationcenter-download.intel.com/akdlm/irc_nas/2568/l_fcompxe_intel64_2011.10.319.tgz
32位:
http://registrationcenter-download.intel.com/akdlm/irc_nas/2476/l_fcompxe_ia32_2011.9.293.tgz
(2) 安装
[root@glnode05 l_fcompxe_intel64_2011.10.319]# ./install.sh
--------------------------------------------------------------------------------
Initializing, please wait...
--------------------------------------------------------------------------------
Step no: 1 of 6 | Welcome
--------------------------------------------------------------------------------
Welcome to the Intel(R) Composer XE 2011 Update 10 for Linux* installation
program.
Intel(R) Fortran Composer XE 2011 Update 10 for Linux* includes not only the
high-performance Intel(R) Fortran Compiler XE 12.1 Update 4, but also Intel(R)
Debugger 12.1 Update 4, and Intel(R) Math Kernel Library (Intel(R) MKL) to
create a strong foundation for building robust, high performance parallel code
at significant price savings.
--------------------------------------------------------------------------------
You will complete the steps below during this installation:
Step 1 : Welcome
Step 2 : License
Step 3 : Activation
Step 4 : Options
Step 5 : Installation
Step 6 : Complete
--------------------------------------------------------------------------------
Press "Enter" key to continue or "q" to quit: <回车>
--------------------------------------------------------------------------------
Checking the prerequisites. It can take several minutes. Please wait...
--------------------------------------------------------------------------------
Step no: 1 of 6 | Options > Missing Optional Pre-requisite(s)
--------------------------------------------------------------------------------
There are one or more optional unresolved issues. It is highly recommended to
resolve them all before you continue the installation. You can fix them without
exiting from
the installation and re-check. Or you can quit from the installation, fix them
and run the installation again.
--------------------------------------------------------------------------------
Missing optional pre-requisites
-- unsupported OS
--------------------------------------------------------------------------------
1. Skip missing optional pre-requisites [default]
2. Show the detailed info about issue(s)
3. Re-check the pre-requisites
h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: <回车>
Step no: 2 of 6 | License
--------------------------------------------------------------------------------
To continue with the installation of this product you are required to accept the
terms and conditions of the End User License Agreement (EULA). The EULA is
displayed using the "more" utility. Press the spacebar to advance to the next
page or enter "q" to skip to the end. After reading the EULA, you must enter
"accept" to continue the installation or "decline" to return to the previous
menu.
--------------------------------------------------------------------------------
IMPORTANT - READ BEFORE COPYING, INSTALLING OR USING.
Do not copy, install, or use the Materials provided under this license agreement
("Agreement"), until you have carefully read the following terms and conditions.
By copying, installing, or otherwise using the Materials, you agree to be bound
by the terms of this Agreement. If you do not agree to the terms of this
Agreement, do not copy, install, or use the Materials.
End User License Agreement for the Intel(R) Software Development Products
1. LICENSE DEFINITIONS:
A. "Materials" are defined as the software, documentation, license key codes
and other materials, including any updates and upgrade thereto, that are
provided to you under this Agreement. Materials also include the
Redistributables, Cluster OpenMP Library, and Sample Source as defined below.
B. "Redistributables" are the files listed in the following text files that
may be included in the Materials for the applicable Intel Software Development
Product: clredist.txt, credist.txt, fredist.txt, redist.txt.
C. "Cluster OpenMP Library", is comprised of the files listed in the
"clredist.txt" file specified above, is the Intel(R) Cluster OpenMP* Library
add-on option to the Intel(R) C++ Compiler for Linux* and Intel(R) Fortran
Compiler for Linux* products ("Intel Compiler for Linux"). The use of the
Cluster OpenMP Library is conditioned on having a valid license from Intel for
the Cluster OpenMP Library and for either Intel Compiler for Linux, and further
is governed by the terms and conditions of the license agreement for applicable
the Intel Compiler for Linux.
D. "Source Code" is defined as the Materials provided in human readable
format, whether unmodified or modified by you.
E. "Sample Source" is the Source Code file(s) that: (i) demonstrate certain
--------------------------------------------------------------------------------
Do you agree to be bound by the terms and conditions of this license agreement?
Type "accept" to continue or "decline" to back to the previous menu: 输入 accept,接受
Step no: 3 of 6 | Activation
--------------------------------------------------------------------------------
If you have purchased this product and have the serial number and a connection
to the internet you can choose to activate the product at this time. Activation
is a secure and anonymous one-time process that verifies your software licensing
rights to use the product. Alternatively, you can choose to evaluate the
product or defer activation by choosing the evaluate option. Evaluation software
will time out in about one month. Also you can use license file, license
manager, or the system you are installing on does not have internet access
activation options.
--------------------------------------------------------------------------------
1. I want to activate my product using a serial number [default]
2. I want to evaluate my product or activate later
3. I want to activate either remotely, or by using a license file, or by using a
license manager
h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 输入 3,回车
Step no: 3 of 6 | Activation > Advanced activation
--------------------------------------------------------------------------------
You can use license file, license manager, or the system you are installing on
does not have internet access activation options.
--------------------------------------------------------------------------------
1. Use a different computer with internet access [default]
2. Use a license file
3. Use a license server
h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 输入 2,回车
Note: Press "Enter" key to back to the previous menu.
Please type the full path to your license file(s): /opt/zhankunlin/Ifort/NCOM_L_CMP_FOR_NR2M-3JK77XGB.lic
--------------------------------------------------------------------------------
Activation completed successfully.
--------------------------------------------------------------------------------
Press "Enter" key to continue: 回车
Step no: 4 of 6 | Options
--------------------------------------------------------------------------------
You are now ready to begin installation. You can use all default installation
settings by simply choosing the "Start installation Now" option or you can
customize these settings by selecting any of the change options given below
first. You can view a summary of the settings by selecting
"Show pre-install summary".
--------------------------------------------------------------------------------
1. Start installation Now
2. Change install directory [ /opt/intel/composer_xe_2011_sp1.10.319 ]
3. Change components to install [ All ]
4. Show pre-install summary
h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 输入2,回车,可以修改安装目录
Please type the full path to the installation directory starting with "/" : /opt/intel/composer_xe_2011_sp1.10.319,修改完后回车。
Step no: 4 of 6 | Options
--------------------------------------------------------------------------------
You are now ready to begin installation. You can use all default installation
settings by simply choosing the "Start installation Now" option or you can
customize these settings by selecting any of the change options given below
first. You can view a summary of the settings by selecting
"Show pre-install summary".
--------------------------------------------------------------------------------
1. Start installation Now
2. Change install directory [
/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319 ]
3. Change components to install [ All ]
4. Show pre-install summary
h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 输入 1 ,回车,开始安装。
Step no: 5 of 6 | Installation
--------------------------------------------------------------------------------
Each component will be installed individually. If you cancel the installation,
components that have been completely installed will remain on your system. This
installation may take several minutes, depending on your system and the options
you selected.
--------------------------------------------------------------------------------
Installing Intel Fortran Compiler XE 12.1 Update 4 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Installing Intel Debugger 12.1 Update 4 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Installing Intel Math Kernel Library 10.3 Update 10 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Press "Enter" key to continue <回车> 继续
Step no: 6 of 6 | Complete
--------------------------------------------------------------------------------
Thank you for installing and for using the
Intel(R) Composer XE 2011 Update 10 for Linux*.
Support services start from the time you install or activate your product, so
please create your support account now in order to take full advantage of your
product purchase. Your Subscription Service support account provides access to
free product updates interactive issue management, technical support, sample
code, and documentation.
To create your support account, please visit the Subscription Services web site
https://registrationcenter.intel.com/RegCenter/registerexpress.aspx?media=RB4
To get started using Intel(R) Composer XE 2011 Update 10 located in
/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319:
- Set the environment variables for a terminal window using one of the following
(replace "intel64" with "ia32" if you are using a 32-bit platform).
For csh/tcsh:
$ source install-dir/bin/compilervars.csh intel64
For bash:
$ source install-dir/bin/compilervars.sh intel64
To invoke the installed compilers:
For C++: icpc
For C: icc
For Fortran: ifort
To get help, append the -help option or precede with the man command.
- To view a table of getting started documents:
install-dir/Documentation/en_US/documentation_f.htm.
Movies and additional training are available on our website at
www.intel.com/software/products.
--------------------------------------------------------------------------------
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [q]: 回车
安装完毕。
ifort 安装在 /opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319 目录下
(3) 使用ifort
进入 /opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319 目录,
执行 source bin/compilervars.sh intel64 命令,设置环境变量,该脚本设置了如下环境变量:
LD_LIBRARY_PATH 运行时需要
LIBRARY_PATH 编译时连接时需要
NLSPATH
MANPATH
INCLUDE
FPATH
CPATH
PATH
LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.319/compos
er_xe_2011_sp1.10.319/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/lib/intel64:/opt/intel/composer_xe_
2011_sp1.10.319/composer_xe_2011_sp1.10.319/debugger/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mpirt/lib/intel64
LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.319/composer_
xe_2011_sp1.10.319/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/lib/intel64
NLSPATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/compiler/lib/intel64/locale/%l_%t/
%N:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/lib/intel64/locale/%l_%t/
%N:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/debugger/intel64/locale/%l_%t/%N
MANPATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/man/en_US:/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.3
19/man/en_US:/development/gcc-
4.3.0/man:/local/zkl/mpich2/man:/opt/jdk1.6.0_20/man:/usr/share/man/zh_CN:/usr/share/man:/usr/kerberos/man:/usr/local/share/man:/usr/X11R6/man:/usr/m
an:/usr/local/man:
INCLUDE=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/include
FPATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/include
CPATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/mkl/include
PATH=/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/bin/intel64:*****
设置了这些环境变量后,可以保证编译程序时,不出现问题。
PS:
ifort 支持 openMP,MPICH2 也支持 ifort,ifort编译高效,因此,使用 ifort 也是一个不错的选择。
Intel的C编译器是 icc,也是不错的产品,下载链接是 http://registrationcenter-download.intel.com/akdlm/irc_nas/2567/l_ccompxe_intel64_2011.10.319.tgz 。
Intel一系列的产品均有非商业版,例如VTune等,均可免费下载,
建议得到下载链接后,用 wget 下载。
Non-Commercial Software Download |
The Intel® Software Development Products listed below are available for free non-commercial download. Click on a product to initiate the download process. Non-commercial licenses are subject to theterms of non-commercial software development. Product Suites
|
参考:http://xbbian.blog.hexun.com/18379789_d.html