fortran安装2(转载)

本文详细介绍了如何在SLES10操作系统上安装Intel Fortran Compiler 9.1,包括下载、解压、安装、配置环境变量以及解决链接库问题。此外,还提及了安装过程中可能遇到的问题和解决方法。
摘要由CSDN通过智能技术生成

在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                

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值