精华内容
下载资源
问答
  • 在Linux安装Fortran编译器

    万次阅读 2012-06-04 19:54:44
    本文详细的记录了 Linux 安装Fortran编译器的过程     1. 浏览器中打开 http://gcc.gnu.org/wiki/GFortranBinaries 2. 下载Linux的2进制版本,我的Linux是Fedora16, x86-64,所以我选择的是...

    本文详细的记录了在 Linux 安装Fortran编译器的过程

     

     

    1. 在浏览器中打开 http://gcc.gnu.org/wiki/GFortranBinaries

    2. 下载Linux的2进制版本,我的Linux是Fedora16, x86-64,所以我选择的是http://gcc.gnu.org/wiki/GFortranBinaries下的
       64-bit AMD-compatible processors (x86_64, AMD64,Intel64, em64t)
       2.1 找到一个文件并下载到本机,我选择的是http://gfortran.com/download/x86_64/nightlies/gcc-trunk-20120601-r188095.tar.xz
       2.2 下载 gcc-infrastructure.tar.xz

    3. 解压缩上面的两个.xz文件文件到.tar文件,我用的是peaZip,也可以用其他工具解压缩
    4. 复制上一步解开的文件 gcc-infrastructure.tar 和 gcc-trunk-20120601-r188095.tar 到Linux PC /opt/目录,需要root权限

    5. 展开gcc-trunk-20120601-r188095.tar 到 /opt目录,
       cd /opt
       tar -xf gcc-trunk-20120601-r188095.tar

    6. 移动 gcc-infrastructure.tar 到 gcc-trunk
       mv gcc-infrastructure.tar ./gcc-trunk/

    7. 展开gcc-infrastructure.tar 到 /opt/gcc-trunk/lib64 目录
       tar -xf gcc-infrastructure.tar

    8. 删除原始的tar文件(略)

    9. 在你的家目录,也可以是其他目录,创建一个f.sh文件,内容如下

    #!/bin/bash

    if [ -z "$LD_LIBRARY_PATH" ] ; then
            export  LD_LIBRARY_PATH="/opt/gcc-trunk/lib64"
    else
            export  LD_LIBRARY_PATH="/opt/gcc-trunk/lib64:$LD_LIBRARY_PATH"
    fi

    export PATH=/opt/gcc-trunk/bin:$PATH


    10. 在你的家目录,运行source f.sh 来设置环境变量
    这是,你就可以使用gfortran 来编译和链接你的fortran程序了,你可以使用gfortran --version来检查你的编译器版本。

    展开全文
  • 在linux安装fortran编译器详细教程

    万次阅读 热门讨论 2018-10-20 16:45:38
    在linux安装fortran编译器 本教程安装的编译器是Intel® Parallel Studio XE 2013 for Linux*,建议使用相同的版本(也可自行去下载Linux版的压缩包),压缩包和许可文件链接...

    在linux下安装fortran编译器
    本教程安装的编译器是Intel® Parallel Studio XE 2013 for Linux*,建议使用相同的版本(也可自行去下载Linux版的压缩包),压缩包和许可文件链接https://pan.baidu.com/s/1HtjIvmcPjiLyUjYkjNLSBw
    安装步骤:

    1. 在根目录下新建software文件夹,将压缩包放到此文件夹下解压
      #mkdir /software
      #tar –xzvf parallel_studio_xe_2013_update2
    2. 进入parallel_studio_xe_2013_update2文件夹执行安装脚本。
      #cd parallel_studio_xe_2013_update2
      #./install.sh
      正确执行后会显示如下信息:
      在这里插入图片描述
      3.按回车键继续进行下一步,出现下列信息,还是回车键,默认选择1号选项。
      在这里插入图片描述
      4.下面出现一大段安装导读,空格键浏览到末端,根据提示输入accept并回车。
      在这里插入图片描述

    5.接下来来到step3,因为我们使用的是许可文件license file,所以选择3选项并回车执行下一步。
    在这里插入图片描述
    6.再根据提示选输入选项2回车,接下来会提示你输入许可文件license file的绝对路径,之前我们将安装包和许可文件都放在了根目录下的software文件夹中,所以输入/software/回车,后面会提示认证成功,回车继续后续步骤。
    在这里插入图片描述
    在step4中直接选择推荐的选项1回车。
    在这里插入图片描述
    7.Step5才开始正式的安装,安装路径直接回车默认选择软件设定的路径即可,后面就是等待安装结束,还会再跳出几个选项,不过都是回车键默认,就不再赘述。
    在这里插入图片描述
    8.接下来是最后一步环节,配置编译器环境变量以普通用户登录,登录以后修改用户根目录下的.bash_profile文件,在最后一行加入下面一行:. /opt/intel/bin/ifortvars.sh intel64
    注意,上面的语句中点号之后有空格。
    $vim ~/.bash_profile
    在这里插入图片描述
    然后重新登录或执行下面的命令:
    $source .bash_profile intel64
    至此intel_fortan编译器在Linux系统下的安装结束,可以放入代码测试有没有正确安装。

    展开全文
  • 现在对之一一做介绍:1、g77(f77):是GCC中默认的fortran编译器,编译出的程序执行速度快,健壮,是十分优秀的编译器,可惜只能针对f77格式的fortran代码;下面就其安装做一简单介绍:[日期:200...

    popleaf1

    2008-06-21 21:52

    在各种

    Linux

    平台下,常用的有下列几种:

    g77(f77)

    Intel Fortran compiler, G95, gfortran

    .

    现在对之一一做介

    绍:

    1

    g77(f77)

    :是

    GCC

    中默认的

    fortran

    编译器

    ,编译出的程序执行速度快,健壮,是十分优秀的

    编译器

    ,可惜只能针对

    f77

    式的

    fortran

    代码;

    下面就其安装做一简单介绍:

    [

    日期:

    2008-03-23]

    来源:

    Linux

    公社

    作者:

    Linux

    整理

    Linux

    下安装

    g77

    fortran

    complier

    的具体过程:

    1.

    ftp://ftp.ntu.edu.tw/pub/gnu/gnu/g77

    下载

    g77-0.5.23.tar.gz

    ftp://ftp.ntu.edu.tw/pub/gnu/gnu/gcc

    下载

    gcc-2.8.1.tar.gz

    确定这两个东西是相容的

    (g77-0.5.23.tar.gz

    gcc-2.8.*.tar.gz

    等版本相容

    )

    可以先解压

    g77-0.5.*.tar.gz

    然后查看解压后资料夹内的

    ./f/INSTALL

    档案查看跟它相容的

    gcc

    版本

    .

    2.

    root

    的身分在

    /usr/

    下制造一个叫

    FSF

    的目录

    ,

    如以下指令

    #cd /usr

    #mkdir FSF

    将下载好的两个压缩档移到

    FSF

    目录中

    #mv g77-0.5.23.tar.gz /usr/FSF

    #mv gcc-2.8.1.tar.gz /usr/FSF

    3.

    接下来跟着以下指令一步一步做

    ,

    不要改变任何细节

    :

    #cd /usr/src

    #gunzip -c 

    注意

    |

    pipe)

    #gunzip -c 

    #ln -s gcc-2.8.1 gcc

    #ln -s g77-0.5.23 g77

    #mv -i g77/* gcc

    #cd gcc

    #./configure –prefix=/usr

    #make bootstrap (

    这里请耐心等它跑完这边最容易出错

    )

    #make compare

    #rm -fr stage1

    #make -k install

    #g77 -v (

    检查

    g77

    版本确定已安装

    OK)

    4.

    详细说明请参看

    g77-0.5.23.tar.gz

    解压后的

    ./g77-0.5.23/f/INSTALL

    展开全文
  • fortran 编译器安装(转载)

    千次阅读 2010-05-27 23:24:00
    在Linux操作系统安装盘中,一般自带有Fortran编译器,SuSe9.1以前为g77,Suse9.2以后为gfortran。但是,由于g77和gfortran编译的程序运行效率不高,一般情况下不会选择安装这二个编译器,而是安装专业的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

    展开全文
  • Intel Fortan Compiler简称ifort, Windows下的ifort是收费的,但是Linux系统下提供免费的ifort,可以下面的链接中下载需要的版本(必须先注册,随后会收到官网发来的邮件,里面提供了接下来安装需要的series-number)...
  • GCC的初衷是为GNU操作系统专门编写一款编译器,现已被大多数类Unix操作系统(如Linux、BSD、MacOS X等)采纳为标准的编译器,甚至微软的Windows上也可以使用GCC。GCC支持多种计算机体系结构芯片,如x86、ARM、MIPS...
  • 1.Intel Parallel Studio XE 2019简介Intel Parallel Studio XE 是Intel单独一款软件开发套件中整合了英特尔公司业界领先的 C/C++ 和 Fortran 编译器、性能和MPI并行库、错误检查、代码健壮性和性能分析工具,有助...
  • 2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译C/C++、...本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。 安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用
  • 2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译...本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。 安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用环...
  • 前言:Linux 系统包含 GNU C 库(glibc),如果需要编写和构建 C 语言程序,只要安装一个编译器,打开一个文本编辑器就可以。一,什么是gccGCC是以GPL许可证所发行的自由软件,也是GNU计划的关键部分。GCC的初衷是为...
  • 本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。 <br />安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用环境变量CC指定系统上的编译器。如果系统上没有编译器,不能安装源...
  • Linux安装GCC编译器过程实录 转自:http://doc.linuxpk.com/39915.html 2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译C/C++、FORTRAN、JAVA、OBJC、ADA等语言 的程序,可根据...
  • Linux安装GCC编译器

    千次阅读 2006-10-11 12:15:00
    Linux安装GCC编译器过程 2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译C/C++、FORTRAN、JAVA、OBJC、ADA等语言的程序,可根据需要选择安装支持的语言。GCC 3.4.0比以前版本更好地支持了...
  • Linux安装GCC编译器

    2006-10-11 12:15:00
    Linux安装GCC编译器过程 2004年4月20日最新版本的GCC编译器3.4.0发布了。目前,GCC可以用来编译C/C++、...本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。  安装之前,系统中必须要有cc或者g...
  • 2004年4月20日最新版本的GCC编译器3.4.0发布了。...本文以Redhat linux安装GCC3.4.0为例,介绍了GCC的安装过程。  安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用环境...
  • 在Linux上进行开发离不开GCC,本文将给出gcc的安装和基本使用方法。 目录一、gcc编译器安装二、GCC基本使用方法、常用指令 一、gcc编译器安装 通过Linux自带的命令可以进行软件的安装,首先先换个国内的下载源:...
  • Ubuntu Linux系统安装intel ifort Fortran和 C++编译器注意事项 Intel ifort Fortran和C++编译器如果装Ubuntu Linux系统上的话,往往会提示出错,例如: Missing critical pre-requisite -- missing system ...
  • 2004年4月20日最新版本的GCC编译器...本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。按照本文提供的步骤和设置选项,即使以前没有安装过GCC,也可以系统上安装上一个可工作的新版本的GCC编译器
  • 本文以Redhat Linux安装GCC3.4.0为例,介绍了GCC的安装过程。 安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用环境变量CC指定系统上的编译器。如果系统上没有编译器,不能安装源代码形式

空空如也

空空如也

1 2 3 4 5 ... 9
收藏数 162
精华内容 64
关键字:

在linux安装fortran编译器

linux 订阅