`

安装icc

阅读更多

http://software.intel.com/en-us/articles/intel-compilers-for-linux-silent-installation-guide/


Intel Compilers for Linux Versions 10.1 and 11.0 Silent Installation Guide

Submit New Article


Intel Compilers for Linux Silent Installation Guide, Versions 10.1 and 11.0

Problem : How to install the Intel Compilers for Linux without using the interactive installer.  Valid for versions 10.1 and 11.0


Environment : Linux, supported distributions.  Please see your ReleaseNotes for your compiler version to determine the supported Linux environments.  This guide covers both the Intel Fortran Compiler for Linux and the Intel C++ Compiler for Linux.  SUDO users should read the notes at the end of this document.


Description:
The Intel Compilers for Linux Silent Installation Guide demonstrates how to install the Intel Compilers for Linux (versions 10.1 and 11.0) with minimal user interaction.  This is useful for remote, automated installations and avoiding prerequisite checking.

Procedure:

0) Prerequisites:  It is assumed you have obtained and mounted your product CD or have downloaded a compiler package.   If you have downloaded the compressed tarfile from the web, find a suitable temporary directory and uncompress/untar your package ( tar -zxvf can be used, for example).

1) Create a local copy of the silent installation file template.  This file is provided in your installation package.  It is a file named 'SilentInstallConfigFile.ini'.

  • CD Media: 
    cp /mnt/cdrom/SilentInstallConfigFile.ini    /home/my_account/my_silent.ini

    where /home/my_account is your home directory or other directory where you have write permission.
    "x.xxx" is replaced with your minor version and build, for example "0.074"
  • Web download, Version 11.0:
    cp l_cprof_p_11.0.xxx/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
    or
    cp l_cprof_p_11.0.xxx_intel64/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
    or
    cp l_cprof_p_11.0.xxx_ia32/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
  • Web Download, Version 10.1
    cp l_fc_p_10.1.022/data/SilentInstallConfigFile.ini /home/my_account/my_silent.ini
    or
    cp l_cc_p_10.1.022/data/SilentInstallConfigFile.ini /home/my_account/my_silent.ini

    where /home/my_account is your home directory or other directory where you have write permission.
    ".xxx" is replaced with your minor version and build, for example ".074"
If you are installing the Intel C++ Compiler for Linux, replace "cprof" above with "cproc", and "l_fc" with "l_cc". 
C++ users please replace "cprof" with "cproc" and "l_fc" with "l_cc" throughout the remainder of this document.

2) Edit your copy of the configuration file, my_silent.ini for example, to accept license agreements and allow for overwrite of existing installations as appropriate.   Edit the file to set preferences for installation target directories and any other changes necessary.  The template file contains reasonably thorough explanations for each of the fields which may be required.  See the notes at the end of this guide for configuration suggestions.

3) Change to a root user.   If you are using 'sudo', please see notes at the end of this guide, "Sudo User Notes ".

4) Run the install program manually
  • v11.0:  Change directory to the main package directory.  For example, if you untarred a web package, this would be:
    cd  ./l_cprof_p_11.0.xxx
    or
    cd ./l_cprof_p_11.0.xxx_intel64
    or
    cd ./l_cprof_p_11.0.xxx_ia32
  • v10.1: Change directory to the main package directory.  For example,
    cd ./l_fc_p_10.1.xxx
    or
    cd ./l_cc_p_10.1.xxx
  • Change directory to the product installation directory:
    • For version 11.0 kits, this is name the same as the package, l_cprof_p_11.0.xxx.
      Your current working directory should now look like:
      <parent directory path>/l_cprof_p_11.0.xxx/l_cprof_p_11.0.xx
    • For version 10.1 kits, this is the "data" subdirectory:
      <parent directory path>/l_fc_p_10.1.xxx/data
  • Run install_fc.sh to start the installation:

    ./install_fc.sh  --run  --silent /home/my_account/my_silent.ini

    Note:  This line is typed in as:
    install_fc.sh<space><dash><dash>run<space><dash><dash>silent<space>FILENAME

    C++ users run 'install_cc.sh'
  • If there are omissions or errors due to minor mistakes in the local copy of the silent .ini file, simply correct the errors and re-run the command (use the option to overwrite prior installations).


5) Additional Installation Options:
There are additional options for 'install_fc.sh' and 'install_cc.sh'.  These options should be used by knowledgeable users and system administrators only:
<!-- --> -v                    Enables display of large amounts of verbose install internals to during the install process.

--arch              Causes the install program to install the files specific to the architecture of the next argument.  For example:

--arch x86       (or ia32)
--arch ia64      (Itanium users)
--arch intel64  (or x86_64 or em64t)

--default           Sets default options for the install process (uses TYPICAL install choice and default install path, if path is not specified

--install-path    Uses next argument as install path for top of tree install directory.  For example:
--install-path /opt/intel/cc/10.1.053

--help              Causes the install program to display a usage message and exit

--imagedir       Forces installer to use the following argument as the location for RPM file installation, instead of the default location

--license-path  Uses the next argument as the location of the license file for this installation.  For example:
--license-path /opt/inte/licenses/productx.lic

-n                   Forces the installer to perform a non-RPM installation, whether or not the target operating system supports RPM.

--tmp-path      Use the following argument as the path for temporary file extraction.  For example:
--tmp-path /alt/tmp

<!-- EndFragment-->


6)  Configuration file template example:

Below is a sample of the SilentInstallConfigFile.ini. 
Notes:

EULA should be changed to 'accept' ONLY AFTER you read the End User License Agreement (EULA).

NON_SUPPORTED_OS_INSTALL should be set to 'Yes' for users experiencing missing prerequisites.

<!-- -->

Template Silent Install Configuration File (C/C++ Version)
#
# INSTALLDIR:
#   Specify the directory to which this product will be installed.
# OPTIONS:
#   Specify the command-lines options to be passed to RPM.
# EULA:
#   Do you accept or reject the terms of the end user license agreement?
#   The set of valid values for EULA is: {accept, reject}.
# LGPL:
#   Do you accept or reject the terms of the Lesser GNU Public License?
#   The set of valid values for LGPL is: {accept, reject}.
# ECL_DISCLAIMER:
#   Do you accept or reject the terms of the CPL for Eclipse?
#   The set of valid values for ECL_DISCLAIMER is: {accept, reject}.
# NON_SUPPORTED_OS_INSTALL:
#   If your operating system is not supported by this installer, do you still
#   wish to install this product?  The set of valid values for
#   NON_SUPPORTED_OS_INSTALL is: {Yes, No}.
# REPLACE_EXISTING_INSTALLATION:
#   If this product already exists on your system, do you still wish to
#   continue the current installation?  The set of valid values for
#   REPLACE_EXISTING_INSTALLATION is: {Yes, No}.
# <REL_NUMBER>:
#   Replace if nessary with release number for this install pacakge (e.g. 10.0.032)

[global]
LICENSE_FILE_LOCATION=/opt/intel/licenses:$HOME/intel/licenses
REL_NUMBER=<REL_NUMBER>

[iidb10-ia32]
INSTALLDIR=/opt/intel/idb/<REL_NUMBER>
OPTIONS=-U --replacefiles --force --nodeps
EULA=reject
NON_SUPPORTED_OS_INSTALL=No
REPLACE_EXISTING_INSTALLATION=No

...etc...



Notes for Sudo Users

Non-root users can use sudo to install the compiler.  For this method, the username must be registered by your system administrator in the 'sudoers' file.  If you receive the error: "<username> is not in the sudoers file.  This incident will be reported." please contact your systems administrator.

1) The easiest method is to use sudo to obtain a bash shell.  This new shell will run as the root user:

sudo bash
<password must be entered.  Use your user password.>

With the invoked shell, run the silent installation as shown in the steps for this guide.  Type 'exit' to exit the root shell.


2) Invoke the installer using sudo.  Follow the procedure in this guide up to the Step 4), Run the installer.   For Step 4, invoke the installer using sudo.  This method still requires the user to interactively enter their password:

sudo ./install_fc.sh  --run --silent FILENAME
<password for user>

3) Fully remote sudo install:  If you wish to fully automate the installation, including passing your user password to sudo and have no prompts whatsoever, use this command:

echo 'your password'  | sudo -S ./install_fc.sh  --run --silent FILENAME

分享到:
评论

相关推荐

    Centos环境部署搭建、X86 ICC编译器下载安装、DPDK下载安装、内存配置等

    tar xvzf parallel_studio_xe_2018_update3_cluster_edition.tgz,cd parallel_studio_xe_2018_,然后按照安装向导安装ICC编译器。 DPDK下载安装 DPDK(Data Plane Development Kit)是一个开源的数据平面开发...

    ICCAVR V8编程环境

    - 安装程序:如`setup.exe`,用于安装ICCAVR V8.05。 - 文档:可能包含用户手册、API参考、示例代码等,帮助用户学习和理解如何使用软件。 - 库文件:提供预编译的库,方便开发者调用。 - 更新日志:列出V8相对于V7...

    icc.rar_icc

    2. Intel Compiler Collection的使用教程:如何安装ICC、配置编译选项、理解和使用ICC的特定优化功能。 3. 边界条件处理:讲解如何正确处理数组、链表等数据结构的边界问题,避免常见的编程陷阱。 4. 高效代码实践:...

    iccavr7.22已注册

    从压缩包子文件的文件名称“iccv7avrV7.22Setup.msi”来看,这是一个Microsoft Installer(MSI)格式的安装包,用于在Windows系统上安装ICC AVR 7.22。MSI是一种标准的安装包格式,它包含了安装软件所需的所有文件和...

    dells2417dg校色调色校正icc.docx

    显示器颜色校正 ICC 文件应用指南 在本文中,我们将详细介绍如何使用 ICC 文件对显示器进行颜色校正,以获得更好的显示效果。我们将以 Dell S2417DG 显示器为例,介绍如何调整显示器的颜色设置,使用 ICC 文件对...

    icc2.0.rar_AVR 开发板_icc2_icc2.0_iccavr开发板

    【标题】"icc2.0.rar" 是一个与AVR微控制器开发相关的压缩包,它包含了一套名为 "icc2.0" 的编译器工具链,...通过解压并安装icc2.0,用户可以快速地开始他们的AVR项目,并借助提供的源码加深对微控制器编程的理解。

    ICC 使用手册及常见错误集

    1. **安装与配置**:手册会介绍如何在不同的操作系统上安装 ICC,并设置环境变量以确保正确运行。 2. **命令行选项**:详细列出各种编译、链接和优化选项,如`-O`系列用于控制优化级别,`-ipo`用于跨模块优化等。 ...

    icc-avr编程入门

    首先,你需要下载并安装ICC AVR软件。一旦安装完毕,启动软件并准备开始编程。在这个例子中,我们将使用ICC AVR内置的LED流水灯实验项目,它提供了一个快速上手的平台,无需从零开始创建工程。 1. 打开ICC AVR软件...

    ICC-AVR.rar_ICC avr _ICC-A_ICC-AVR_avr_icc

    1. **安装与启动**:下载并安装ICC AVR IDE,启动后创建新项目或打开现有项目。 2. **创建项目**:在项目管理器中新建一个项目,选择相应的AVR设备,设置编译器选项和目标平台。 3. **编写代码**:使用内置的代码...

    ICCAVR学习笔记 程序 电路 编程

    1. 安装与配置:下载并安装ICCAVR7.14及Proteus7.5软件,按照官方指南进行配置,确保软件正常运行。 2. 项目创建:在ICCAVR中新建项目,导入源代码文件,并指定目标AVR芯片型号。设置好编译器选项和调试参数。 3. ...

    ICCAVR安装及使用教程借鉴.pdf

    **一、安装ICCAVR** 1. **下载安装包**:首先,你需要从IAR Systems的官方网站下载最新版本的ICCAVR安装程序。确保选择适合你操作系统的版本,例如Windows 64位或32位。 2. **运行安装程序**:双击下载好的安装...

    ICCAVR.rar_iccavR_iccavr教程

    1. **安装与设置**:首先,你需要下载并安装ICCAVR软件。安装过程相对简单,按照向导提示操作即可。安装完成后,启动IDE,设置好工作路径和编译器选项。 2. **项目创建**:在ICCAVR中,你可以创建一个新的工程来...

    ICCAVR.rar_iccavR

    它会涵盖如何安装ICCAVR,配置开发环境,编写和上传代码到AVR芯片的步骤,以及如何调试和测试程序。 4. **R语言与嵌入式编程**: "iccavR"中的"R"可能表示此工具或库支持使用R语言进行编程,R通常用于统计分析和数据...

    绘图仪ICC颜色配置文件使用方法

    1. **安装ICC配置文件**: - 首先需要确保已关闭所有正在使用的图像编辑软件,如Photoshop。 - 在所获取的ICC配置文件(例如“Xxxxx.icc”)上右键单击,选择“安装配置文件”。若操作系统不支持此选项,则可将该...

    CANON W系列大幅面打印机ICC曲线使用说明,以CANON W6200为例

    2. **安装ICC曲线**:将生成或下载的ICC文件保存在系统指定的位置,通常是系统的色彩配置文件目录。Windows用户通常在"控制面板"中的"颜色管理"设置中添加和选择ICC曲线;Mac用户则在"系统偏好设置"的"颜色"选项里...

    ICCAVR 的中文使用说明.pdf

    - 如果需要在不同电脑间或同一电脑的不同目录中安装ICCAVR,应先通过IDE的“帮助”菜单中选择“将您的许可传送至软盘”,将许可信息转移后,再按上述流程进行安装和注册。 #### 二、ICCAVR 介绍 **1. ICCAVR 工具...

    iccavr7.22破解版+iccavr7.22使用图解

    iccavr7.22破解版+iccavr7.22使用图解 iccavr7.22破解版+iccavr7.22使用图解 iccavr7.22破解版+iccavr7.22使用图解 iccavr7.22破解版+iccavr7.22使用图解 iccavr7.22破解版+iccavr7.22使用图解 iccavr7.22破解版+icc...

    ICC avr 代码参考

    1. **ICC AVR IDE的安装与配置**:介绍如何下载和安装ICC AVR IDE,以及设置项目工程的基本步骤。 2. **AVR C/C++编程基础**:讲解AVR微控制器的C/C++编程语法,包括数据类型、控制结构、函数声明和调用等。 3. **...

    ICCAVR V7.19

    **ImageCraft ICCAVR V7.19.exe**:这是安装程序,用户通过运行此文件可以安装ICCAVR V7.19的完整开发环境。安装过程中,程序会将必要的库文件、编译器、IDE、调试器以及其他相关工具安装到用户的计算机上。 **...

Global site tag (gtag.js) - Google Analytics