CentOS 5.2 Linux 下安裝 Intel fortran 編譯器
2012-5-11
(1) 下載
進入 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:*****
設定了這些環境變數後,可以保證編譯器時,不出現問題。
一些函數文檔:http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/win/compiler_f/lref_for/source_files/rfseed.htm
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等,均可免費下載,
VTune下載連結是:http://registrationcenter-download.intel.com/akdlm/irc_nas/2526/vtune_amplifier_xe_2011_update8.tar.gz
建議得到下載連結後,用 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
- Intel Parallel Studio XE 2011 for Linux*
Includes Intel C++ Composer XE, Intel Fortran Composer XE, Intel VTune Amplifier XE, Intel Inspector XE
- Intel C++ Studio XE 2011 for Linux
Includes Intel C++ Composer XE, Intel VTune Amplifier XE, Intel Inspector XE
Compilers and Libraries
- Intel Fortran Composer XE 2011 for Linux
Includes Intel Fortran Compiler, Intel Math Kernel Library
- Intel C++ Composer XE 2011 for Linux
Includes Intel C++ Compiler, Intel Integrated Performance Primitives, Intel Math Kernel Library, Intel Parallel Building Blocks
Performance Libraries
- Intel Math Kernel Library (Intel MKL) for Linux
- Intel Integrated Performance Primitives (Intel IPP) for Linux
Performance Profilers
- Intel VTune Amplifier XE 2011 for Linux
Thread and Memory Checkers
- Intel Inspector XE 2011 for Linux
|
參考:http://xbbian.blog.hexun.com/18379789_d.html