fortran 编译器安装(转载)

在Linux操作系统安装盘中,一般自带有Fortran编译器,SuSe9.1以前为g77,Suse9.2以后为gfortran。但是,由于g77和gfortran编译的程序运行效率不高,一般情况下不会选择安装这二个编译器,而是安装专业的Fortran编译器。本文介绍Linux平台下搭建Fortran并行编译环境(SLES10 )方法。

一.Fortran编译器的安装

目前,主流的Fortran 90/95编译器有PGI Fortran、HP Fortran Compiler(由Fortran PowerStation进化过来的)和Intel Fortran Compiler等。其中,Intel Fortran Compiler9.1是Intel提供的免费的Non-Commercial版本,在Intel平台上具有较高的编译效率,有Windows和Linux两种发行版。下面介绍在SLES10.0 上安装 Intel Fortran Compiler 9.1 的过程。

1.下载安装包

安装包从ftp上下载,ifcliv91.bin,为光盘文件,可以直接拷贝到目录/home/hou/software/intel_fc_91下。

2.解压安装文件,命令如下:

编译器安装在/opt/intel目录下,协议在该目录下的licenses文件夹中。最后还要指定licenses的位置。具体命令如下:

#mkdir -p /opt/intel/licensesEeaitug
#cp /home/hou/isoftware/intel_fc_91/Crack/i*.lic /opt/intel/licensesEeaitug
# export INTEL_LICENSE_FILE=opt/intel/licenses

3.安装程序,命令如下:

#cd /home/hou/isoftware/intel_fc_91Eeaitug
#./install.sh

按照安装提示,逐步安装即可。一般情况下,可以顺利安装完毕,在此安装包中一共包含有以下编译器,可以全部安装,也可以选择安装其中之一。

Intel® Fortran Compiler for IA-32 Based Applications Eeaitug
? Intel® Fortran Compiler for Linux for IA-32 applications, version 9.1 Eeaitug
? Intel® Debugger for IA-32 applications, version 9.1  Eeaitug
Intel® Fortran Compiler for Intel EM64T-Based ApplicationsEeaitug
? Intel® Fortran Compiler for Linux for Intel EM64T-Based applications, version 9.1 Eeaitug
? Intel® Debugger for Intel EM64T-based applications, version 9.1  Eeaitug
Intel® Fortran Compiler for Itanium-Based Applications Eeaitug
? Intel® Fortran compiler for Itanium-based applications, version 9.1 Eeaitug
? Intel® Debugger for Itanium-based applications, version 9.1 Eeaitug
? Intel® Itanium Assembler to produce Itanium-based applications, version 9.0

安装Intel Fortran Compiler for Intel EM64T-Base,默认目录就是/opt/intel/fce/9.1.032/。安装编译器完成之后,继续可以安装Linux Application Debugger for Intel EM64T-base applications,它默认安装在/opt/intel/idbe/9.1.023/下。最后选择“x”退出安装程序。

4.安装完成,将编译器路径加入到环境变量中。命令如下:

server:~ # vi .bash_profileEeaitug
export PATH=$PATH:/opt/intel/fce/9.1.032/binEeaitug
export MANPATH=$MANPATH:/opt/intel/fce/9.1.032/manEeaitug
server:~ # source .bash_profile

运行编译以后,会出现找不到链接库文件的问题,这是由于没有将Intel编译器的库文件添加到链接库搜索中,编辑/etc/ ld.so.conf,添加intel库文件的路径。具体如下:

server:~ # vi /etc/ld.so.confEeaitug
/usr/X11R6/lib64Eeaitug
/usr/X11R6/lib/Xaw3dEeaitug
/usr/X11R6/libEeaitug
/usr/x86_64-suse-linux/libEeaitug
/usr/local/libEeaitug
/opt/kde3/libEeaitug
/opt/gnome/libEeaitug
/lib64Eeaitug
/libEeaitug
/usr/lib64Eeaitug
/usr/libEeaitug
/usr/local/lib64Eeaitug
/opt/kde3/lib64Eeaitug
/opt/gnome/lib64Eeaitug
/opt/intel/fce/9.1.032/libEeaitug
include /etc/ld.so.conf.d/*.conf

然后运行命令生效。

server:/etc # ldconfig -v

安装完毕,可以编写小程序进行测试。

 

god@debian:~/l_fc_p_10.1.008_ia32$ sudo ./install.sh

proceeding as a root user...
==============================================================================
Welcome to the Intel(R) Fortran Compiler 10.1.008 for Linux* Installation

Please make your selection by entering an option from the choices below:

        1. Install
        2. Readme
        3. Release Notes
        4. Installation Guide
        h. Help
        x. Exit

Please type a selection:   1

===============================================================================
Provide a Serial Number or License File

Please make your selection by entering an option from the choices below:

        1. Provide your serial number [Recommended]
             Use this option  if  you  have  a  serial number  to  install  and
             register  your  software.  The Intel(R) Software Setup  Assistant
             may connect to the Intel(R) Software Development Products Registration Center
             to verify your serial number. Please refer to the Intel(R) Privacy Policy
             regarding the collection and handling of your personal information.
             Your Serial Number is in XXXX-XXXXXXXX format.
        2. Provide the absolute path for an existing license file.
             Use this option if you have obtained a license file instead of a
             serial number.
        3. Where do I find my Serial Number?
        4. Intel(R) Privacy Policy
        b. Go Back.
        h. Help.
        x. Exit.

Please type a selection or Serial Number:   1
Enter Serial Number:    ************

The  Intel(R) Software  Setup Assistant  may  attempt to  connect  to  the
Intel(R) Software Development Products Registration Center to validate your Serial Number.
This may take several minutes depending on your network.  Please wait...

You may press Ctrl+C to cancel.
Installation package for IA-32.
Checking Dependencies ...
Checking operating system requirements .............................. Detected operating system Debian* (generic) is not supported.

Checking Kernel and glibc dependencies ...

Your platform   :
    architecture      = i686
    kernel            = 2.6.22-3-686
    glibc             = /lib/libc-2.7.so
    operating system  = Debian* (generic)

This product is supported for use with the following combinations   :

    Machine Type                        Kernel  glibc

    IA-32/Intel(R) 64                   2.4.x   2.2.5
    IA-32/Intel(R) 64                   2.4.x   2.2.93
    IA-32/Intel(R) 64                   2.4.x   2.3.2
    IA-32/Intel(R) 64                   2.6.x   2.3.x
    IA-32/Intel(R) 64                   2.6.x   2.4.x
    IA-32/Intel(R) 64                   2.6.x   2.5.x
    IA-32/Intel(R) 64                   2.6.x   2.6.x

Would you like to perform an unsupported install of this product [yes/no]  (no) ?   :   yes
Checking existing license files ....

Which of the following would you like to do?
1.    Typical Install (Recommended - Installs All Components).
2.    Custom Install (Advanced Users Only).
x.    Exit.

Please type a selection:   1

Preparing ...
Intel(R) Fortran Compiler for applications running on IA-32, Version 10.1.008

--------------------------------------------------------------------------------
Please carefully read the following license agreement.  Prior to installing the
software you will be asked to agree to the terms and conditions of the following
license agreement.
--------------------------------------------------------------------------------
Press Enter to continue   :   


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 Agreem
ent, 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, for the applicable
Intel Software Development Product (which may be found at http://www.intel.com/s
oftware/products/), that are provided to you under this Agreement.  Materials al
so include the Redistributables 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 Produ
ct: 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 i
s conditioned on having a valid license from Intel for the Cluster OpenMP Librar
y  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 L
inux.

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 limi
ted functions included in the binary libraries of the Intel(R) Integrated Perfor
mance Primitives ("Intel(R) IPPs"); (ii) are identified as Intel IPP sample sour
ce code; and (iii) are obtained separately from Intel after you register your co
py of the Intel Integrated Performance Primitives product with Intel.

2. LICENSE GRANT:

A. Subject to all of the terms and conditions of this Agreement, Intel Corporati
on ("Intel") grants to you a non-exclusive, non-assignable, copyright license to
use the Materials.

B. Subject to all of the terms and conditions of this Agreement, Intel grants to
you a non-exclusive, non-assignable copyright license to modify the Materials,
or any portions thereof, that are (i) provided in Source Code form or, (ii) are
defined as Redistributables and are provided in text form.

C. Subject to all of the terms and conditions of this Agreement, Intel grants to
you a non-exclusive, non-assignable copyright license to distribute (except und
er an Evaluation License as specified below) the Redistributables, or any portio
ns thereof, as part of the product or application you developed using the Materi
als.  If such application is a software development library, then attribution, a
s specified in the product release notes of the corresponding Materials, shall b
e displayed prominently in that application's product documentation and on the a
pplication's product web site.

3. LICENSE RESTRICTIONS:

A. If you receive your first copy of the Materials electronically, and a second
copy on media, then you may use the second copy only in accordance with your app
licable license stated in this Agreement, or for backup or archival purposes.  Y
ou may not provide the second copy to another user.

B. You may NOT:  (i) use or copy the Materials except as provided in this Agreem
ent; (ii) rent or lease the Materials to any third party; (iii) assign this Agre
ement or transfer the Materials without the express written consent of Intel; (i
v) modify, adapt, or translate the Materials in whole or in part except as provi
ded in this Agreement; (v) reverse engineer, decompile, or disassemble the Mater
ials; (vi) attempt to modify or tamper with the normal function of a license man
ager that regulates usage of the Materials; (vii) distribute, sublicense or tran
sfer the Source Code form of any components of the Materials, Redistributables a
nd Sample Source and derivatives thereof to any third party except as provided i
n this Agreement; or (viii) distribute Redistributables except as part of a larg
er program that adds significant primary functionality different from that of th
e Redistributables.

C. The scope and duration (time period) of your license depends on the type of l
icense you obtained from Intel.  The variety of license types are set forth belo
w, which may not be available for all "Intel(R) Software Development Products" a
nd therefore may not apply to the Materials.  For more information on the types
of licenses, please contact Intel or your sales representative.

i. EVALUATION LICENSE: If you are using the Materials under the control of an Ev
aluation license, you as an individual may use the Materials only for internal e
valuation purposes and only for the term of the evaluation time period, which is
controlled by the license key code for the Materials.  NOTWITHSTANDING ANYTHING
TO THE CONTRARY ELSEWHERE IN THIS AGREEMENT, YOU MAY NOT DISTRIBUTE ANY PORTION
OF THE MATERIALS, AND THE APPLICATION AND/OR PRODUCT DEVELOPED BY YOU MAY ONLY
BE USED FOR EVALUATION PURPOSES AND ONLY FOR THE TERM OF THE EVALUATION PERIOD.
You may install copies of the Materials on an unlimited number of computers pro
vided that you are the only individual using the Materials and only one copy of
the Materials is in use at any one time.  A separate license is required for eac
h additional use and/or individual user in all other cases.  Intel will provide
you with a license code key that enables the Materials for an Evaluation license
.  If you are an entity, Intel grants you the right to designate one individual
within your organization to have the sole right to use the Materials in the mann
er provided above.

ii. NONCOMMERCIAL-USE LICENSE:  If you are using the Materials under the control
of a Noncommercial-Use license, you as an individual may use the Materials only
for non-business use where you receive no fee, salary or any other form of comp
ensation.  The Materials may not be used for any other purpose, whether "for pro
fit" or "not for profit."  Any work performed or produced as a result of use of
the Materials cannot be performed or produced for the benefit of other parties f
or a fee, compensation or any other reimbursement or remuneration.  You may inst
all copies of the Materials on an unlimited number of computers provided that yo
u are the only individual using the Materials and only one copy of the Materials
is in use at any one time.  A separate license is required for each additional
use and/or individual user in all other cases.  Intel will provide you with a li
cense code key that enables the Materials for a Noncommercial-Use license.  If y
ou obtained a time-limited Noncommercial-Use license, the duration (time period)
of your license and your ability to use the Materials is limited to the time pe
riod of the obtained license, which is controlled by the license key code for th
e Materials.  If you are an entity, Intel grants you the right to designate one
individual within your organization to have the sole right to use the Materials
in the manner provided above.

iii. SINGLE-USER LICENSE: If you are using the Materials under the control of a
Single-User license, you as an individual may install and use the Materials on a
n unlimited number of computers provided that you are the only individual using
the Materials and only one copy of the Materials is in use at any one time.  A s
eparate license is required for each additional use and/or individual user in al
l other cases.  Intel will provide you with a license code key that enables the
Materials for a Single-User license.  If you obtained a time-limited Single-User
license, the duration (time period) of your license and your ability to use the
Materials is limited to the time period of the obtained license, which is contr
olled by the license key code for the Materials.  If you are an entity, Intel gr
ants you the right to designate one individual within your organization to have
the sole right to use the Materials in the manner provided above.

iv. NODE-LOCKED LICENSE: If you are using the Materials under the control of a N
ode-Locked license, you may use the Materials only on a single designated comput
er by no more than the authorized number of concurrent users.  A separate licens
e is required for each additional concurrent user and/or computer in all other c
ases.  Intel will provide you with a license code key that enables the Materials
for a Node-Locked license up to the authorized number of concurrent users.  If
you obtained a time-limited Node-Locked license, the duration (time period) of y
our license and your ability to use the Materials is limited to the time period
of the obtained license, which is controlled by the license key code for the Mat
erials.

v. FLOATING LICENSE: If you are using the Materials under the control of a Float
ing license, you may (a) install the Materials on an unlimited number of compute
rs that are connected to the designated network and (b) use the Material by no m
ore than the authorized number of concurrent users.  A separate license is requi
red for each additional concurrent user and/or network on which the Materials ar
e used.  Intel will provide you with a license code key that enables the Materia
ls for a Floating license up to the authorized number of concurrent users.  If y
ou obtained a time-limited Floating license, the duration (time period) of your
license and your ability to use the Materials is limited to the time period of t
he obtained license, which is controlled by the license key code for the Materia
ls.  Intel Library Floating License: If the Materials are the Intel(R) Math Kern
el Library or the Intel(R) Integrated Performance Primitives Library or the Inte
l(R) Threading Building Blocks (either "Intel Library"), then the Intel Library
is provided to you as an add-on option to either the Intel(R) C++ Compiler produ
ct or the Intel(R) Fortran Compiler product (either "Intel Compiler") for which
you have a Floating license, and as such, in addition to the terms and condition
s above, the Intel Library may only be used by the authorized concurrent users o
f that Intel Compiler Floating license.

vi. CLUSTER SYSTEM LICENSE: If you are using the Materials under the control of
a Cluster System license, (a) you may install the Materials on an unlimited numb
er of computers provided that all such computers are part of a single cluster sy
stem and (b) if you are an entity you must designate from within your organizati
on individuals, up to and not exceeding the authorized number of users, to have
the sole right to use the Materials, and you must limit the use of the Materials
to only those designated individuals.  A separate license is required for (c) e
ach additional cluster system on which the Materials are used, and (d) each addi
tional designated individual user exceeding the authorized number of users.  Int
el will provide you with a license code key that enables the Materials for a Clu
ster System license up to the authorized number of individual uses/users.  If yo
u obtained a time-limited Cluster System license, the duration (time period) of
your license and your ability to use the Materials is limited to the time period
of the obtained license, which is specified in the Materials and/or controlled
by the license key code for the Materials.

D. DISTRIBUTION:  Distribution of the Materials is also subject to the following
limitations:  You (i) shall be solely responsible to your customers for any upd
ate or support obligation or other liability which may arise from the distributi
on, (ii) shall not make any statement that your product is "certified", or that
its performance is guaranteed, by Intel, (iii) shall not use Intel's name or tra
demarks to market your product without written permission, (iv) shall prohibit d
isassembly and reverse engineering, (v) shall not publish reviews of Materials d
esignated as beta without written permission by Intel, and (vi) shall indemnify,
hold harmless, and defend Intel and its suppliers from and against any claims o
r lawsuits, including attorney's fees, that arise or result from your distributi
on of any product.

E. Intel(R) Integrated Performance Primitives (Intel IPP). The following terms a
nd conditions apply only to the Intel IPP.

i. Licensee's use or implementation of the Intel IPP Materials may require addit
ional licenses, including but not limited to copyright and patent licenses from
various entities.  Should any such additional copyright, patent or other license
s be required, Licensee agrees to obtain any such licenses at Licensee's own exp
ense.  Licensee is solely responsible for obtaining any such licenses and the co
pyright licenses granted in herein are conditioned on Licensee obtaining such ad
ditional licenses.

ii. Notwithstanding anything herein to the contrary, a valid license to Intel IP
P is a prerequisite to any license for Sample Source, and possession of Sample S
ource does not grant any license to Intel IPP (or any portion thereof).  To acce
ss Sample Source, you must first register your licensed copy of the Intel IPP wi
th Intel.  By downloading, installing or copying any Sample Source file, you agr
ee to be bound by terms of this Agreement.

F. SOFTWARE TRANSFER: You may permanently transfer all of your rights under this
Agreement only with Intel's prior written permission.

4. COPYRIGHT: Title to the Materials and all copies thereof remain with Intel or
its suppliers.  The Materials are copyrighted and are protected by United State
s copyright laws and international treaty provisions.  You will not remove any c
opyright notice from the Materials.  You agree to prevent any unauthorized copyi
ng of the Materials.  Except as expressly provided herein, no license or right i
s granted to you directly or by implication, inducement, estoppel or otherwise,
specifically Intel does not grant any express or implied right to you under Inte
l patents, copyrights, trademarks, or trade secret information.

5. NO WARRANTY AND LIMITED REPLACEMENT:  THE MATERIALS AND INFORMATION ARE PROVI
DED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-
INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS, OR ANY WARRANTY OTHERWISE ARISING
OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE.  If the media on which the Materi
als are furnished are found to be defective in material or workmanship under nor
mal use for a period of ninety (90) days from the date of receipt, Intel's entir
e liability and your exclusive remedy shall be the replacement of the media.  Th
is offer is void if the media defect results from accident, abuse, or misapplica
tion.

6. LIMITATION OF LIABILITY: THE ABOVE REPLACEMENT PROVISION IS THE ONLY WARRANTY
OF ANY KIND.  INTEL OFFERS NO OTHER WARRANTY EITHER EXPRESS OR IMPLIED INCLUDIN
G THOSE OF MERCHANTABILITY, NONINFRINGEMENT OF THIRD- PARTY INTELLECTUAL PROPERT
Y OR FITNESS FOR A PARTICULAR PURPOSE. NEITHER INTEL NOR ITS SUPPLIERS SHALL BE
LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LO
SS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
OTHER LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF
INTEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.  BECAUSE SOME JURISDI
CTIONS PROHIBIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR IN
CIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.

7. UNAUTHORIZED USE:  THE MATERIALS ARE NOT DESIGNED, INTENDED, OR AUTHORIZED FO
R USE IN ANY TYPE OF SYSTEM OR APPLICATION IN WHICH THE FAILURE OF THE MATERIALS
COULD CREATE A SITUATION WHERE PERSONAL INJURY OR DEATH MAY OCCUR (E.G MEDICAL
SYSTEMS, LIFE SUSTAINING OR LIFE SAVING SYSTEMS).  Should the buyer purchase or
use the Materials for any such unintended or unauthorized use, the buyer shall i
ndemnify and hold Intel and its officers, subsidiaries and affiliates harmless a
gainst all claims, costs, damages, and expenses, and reasonable attorney fees ar
ising out of, directly or indirectly, any claim of product liability, personal i
njury or death associated with such unintended or unauthorized use, even if such
claim alleges that Intel was negligent regarding the design or manufacture of t
he part.

8. USER SUBMISSIONS:  You agree that any material, information or other communic
ation you transmit or post to an Intel website or provide to Intel under this Ag
reement will be considered non-confidential and non-proprietary ("Communications
").  Intel will have no obligations with respect to the Communications.  You agr
ee that Intel and its designees will be free to copy, modify, create derivative
works, publicly display, disclose, distribute, license and sublicense through mu
ltiple tiers of distribution and licensees, incorporate and otherwise use the Co
mmunications and all data, images, sounds, text, and other things embodied there
in, including derivative works thereto, for any and all commercial or non-commer
cial purposes. You are prohibited from posting or transmitting to or from an Int
el website or provide to Intel any unlawful, threatening, libelous, defamatory,
obscene, pornographic, or other material that would violate any law.

9. TERMINATION OF THIS LICENSE: This Agreement becomes effective on the date you
accept this Agreement and will continue until terminated as provided for in thi
s Agreement.  If you are using the Materials under the control of a time-limited
license, for example an Evaluation License, this Agreement terminates without n
otice on the last day of the time period, which is controlled by the license key
code for the Materials.  Intel may terminate this license at any time if you ar
e in breach of any of its terms and conditions.  Upon termination, you will imme
diately return to Intel or destroy the Materials and all copies thereof.

10. U.S. GOVERNMENT RESTRICTED RIGHTS: The Materials are provided with "RESTRICT
ED RIGHTS". Use, duplication or disclosure by the Government is subject to restr
ictions set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its successor.
  Use of the Materials by the Government constitutes acknowledgment of Intel's r
ights in them.

11. APPLICABLE LAWS: Any claim arising under or relating to this Agreement shall
be governed by the internal substantive laws of the State of Delaware, without
regard to principles of conflict of laws.  You agree that the terms of the Unite
d Nations Convention on Contracts for the Sale of Goods do not apply to this Agr
eement. You agree that your distribution and export/re-export of the Software an
d permitted modifications shall be in compliance with the laws, regulations, ord
ers or other restrictions of applicable export laws.

* Other names and brands may be claimed as the property of others

Do you agree to be bound by the terms and conditions of this license agreement?
'accept' to continue, 'reject' to return to the main menu   :   accept



Processing Intel(R) Fortran Compiler for applications running on IA-32, Version 10.1.008


Values in [...] are the default values.
You can just hit the Enter key where you want to use the default values.

Where do you want to install to?  Specify directory starting with '/'.
    [/opt/intel/fc/10.1.008]   :   /usr/lib/intelfortran
--------------------------------------------------------------------------------
Intel(R) Fortran Compiler for applications running on IA-32, Version 10.1.008
Installing...
Installation successful.
--------------------------------------------------------------------------------

Testing Intel(R) Fortran compiler installed in /usr/lib/intelfortran ...
Intel(R) Fortran compiler passed.


Preparing ...


Processing Intel(R) Debugger for applications running on IA-32, Version 10.1.008


Values in [...] are the default values.
You can just hit the Enter key where you want to use the default values.

Where do you want to install to?  Specify directory starting with '/'.
    [/opt/intel/idb/10.1.008]   :   /usr/lib/intelfortran/idb
--------------------------------------------------------------------------------
Intel(R) Debugger for applications running on IA-32, Version 10.1.008
Installing...
Installation successful.
--------------------------------------------------------------------------------

Successfully installed:

Intel(R) Fortran Compiler for applications running on IA-32, Version 10.1.008
intel-ifort101008-10.1.008-1.i386.rpm

Intel(R) Debugger for applications running on IA-32, Version 10.1.008
intel-iidb101008-10.1.008-1.i386.rpm



Please refer to /usr/lib/intelfortran/doc/Getting_Started.htm to view
instructions on how to invoke the product.




Press ENTER to continue ...



Installation is complete:
Thank you for using Intel(R) Software Development Products, tools for improving application performance.
===============================================================================


Press Enter key to continue...
god@debian:~/l_fc_p_10.1.008_ia32$ cd
god@debian:~$ ls
a.out       intel                 NCOM_L_CMP_FOR_N3KT-2NK64C9D.lic  shi2.m
bbs~        intel.lic             nettor                            tes.c~
Desktop     l_fc_p_10.1.008_ia32  nettor~                           usuallyuse
Downloads   LumaQQ                pictures                          器材diy.odt
ex0411.f90  mo                    score.f90                         新文件~
god@debian:~$ ifort ex0411.f90  -o fc
bash: ifort: command not found
god@debian:~$ vi .bash_profile
god@debian:~$ ifort ex0411.f90  -o fc
bash: ifort: command not found
god@debian:~$ source .bash_profile
god@debian:~$ ifort ex0411.f90  -o fc
god@debian:~$ ./fc
a+b= (3.000000,4.000000)
a*b= (-1.000000,5.000000)
god@debian:~$

 

----------------------------------------------------------------------------------------------------------------------------------------------------

关于环境变量的设置原文有点问题的

debian下面应该是在/etc/bash.bashrc里增加两行 文件的绝对路径,实际上相当于启动的时候执行这2个脚本,把所有的inter fortran complier和idb(intel fortran的调试器,类似于gdb)的各种参数及命令的路径释放到环境变量里

. /usr/lib/intelfortran/bin/ifortvars.sh
. /usr/lib/intelfortran/idb/bin/idbvars.sh

你可能感兴趣的:(fortran 编译器安装(转载))