Twitterに投稿 はてなブックマークに追加 Google Bookmarksに追加

目次 >> Intel Compiler

Intelコンパイラのインストール

ここではIntel C++ Composer XE (旧インテルC++ コンパイラー)のインストール方法を説明する。基本的に64ビット版である。

Ubuntu 11.04にC++ Composer XE 2011 をインストールする

バージョン11までに比べて、インストールがだいぶ楽になった。

まずダウンロードしたファイルを解凍する

$ tar zxvf l_ccompxe_intel64_2011.4.191.tgz

解答したディレクトリに移動し

$ cd l_ccompxe_intel64_2011.4.191/

インストールスクリプトを実行する

$ sudo ./install.sh

すると6ステップ存在することがわかる。

Step no: 1 of 6 | Welcome
--------------------------------------------------------------------------------
Welcome to the Intel(R) Composer XE 2011 Update 4 for Linux* installation
program.

Intel(R) C++ Composer XE 2011 Update 4 for Linux* includes not only the
high-performance Intel(R) C++ Compiler XE, but also Intel(R) Debugger, Intel(R) 
Threading Building Blocks (Intel(R) TBB), Intel(R) Integrated Performance
Primitives (Intel(R) IPP), 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: 

Enterキーを押すと、最初のステップに入る。

Step no: 1 of 6 | Options > Missing Optional Pre-requisite(s)
--------------------------------------------------------------------------------
There is one or more optional unresolved issues. It is highly recommended to fix
it all before you continue the installation. You can fix it without exiting from
the installation and re-check. Or you can quit from the installation, fix it and
run the installation again.
--------------------------------------------------------------------------------
Missing optional pre-requisite
-- 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]: 

Missing optional pre-requisiteにunsupported OSと出ているが、Ubuntuが新しすぎるためであり今回の場合特に問題は無かった。
デフォルトの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, ins
tall, or use the Materials.

End User License Agreement for the Intel(R) Software Development Products

1.      LICENSE DEFINITIONS: 

(中略)

--------------------------------------------------------------------------------
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

ライセンスを読んで同意する必要がある。同意した場合は、「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]: 

メールでシリアルナンバーを取得している場合は、デフォルトの1番でよい。

Note: Press "Enter" key to back to the previous menu.
Please type your serial number (the format is XXXX-XXXXXXXX): WXYZ-ABCDEFGH

シリアル番号(WXYZ-ABCDEFGHの部分)をメールで送られてきたとおりに入力すると、

--------------------------------------------------------------------------------
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/composerxe-2011.4.191 ]
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番のインストールディレクトリは特に理由がなければ、そのままでよい。
今回はインストールするコンポーネントを最小限にして、ハードディスクの容量を節約した。やり方は、

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/composerxe-2011.4.191 ]
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]: 3

ここで3を選択し、

You may choose not to install some components of this product. Optional
components are shown with an option number of the left. Entering that number
will select/unselect that component for installation. When you have completed
your changes, select option 1 to return to previous menu.
--------------------------------------------------------------------------------
1. Finish component selection

2. [x] Intel(R) Composer XE 2011 for Linux*
3. [x] Intel(R) C++ Compiler XE version 12.0 for Linux*
(for applications running on Intel(R) 64)
4. [x] Intel(R) Debugger version 12.0 for Linux*
(for applications running on Intel(R) 64)
5. [x] Intel(R) Math Kernel Library 10.3 for Linux*
(for applications running on Intel(R) 64)
6. [x] Intel(R) Integrated Performance Primitives 7.0 for Linux*
(for applications running on Intel(R) 64)
7. [x] Intel(R) Threading Building Blocks 3.0 core files and examples for
Linux*


h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]:

デフォルトの状態ではこのように、すべてインストールするようになっているので、これを

You may choose not to install some components of this product. Optional
components are shown with an option number of the left. Entering that number
will select/unselect that component for installation. When you have completed
your changes, select option 1 to return to previous menu.
--------------------------------------------------------------------------------
1. Finish component selection

2. [x] Intel(R) Composer XE 2011 for Linux*
3. [x] Intel(R) C++ Compiler XE version 12.0 for Linux*
(for applications running on Intel(R) 64)
4. [ ] Intel(R) Debugger version 12.0 for Linux*
(for applications running on Intel(R) 64)
5. [ ] Intel(R) Math Kernel Library 10.3 for Linux*
(for applications running on Intel(R) 64)
6. [ ] Intel(R) Integrated Performance Primitives 7.0 for Linux*
(for applications running on Intel(R) 64)
7. [ ] Intel(R) Threading Building Blocks 3.0 core files and examples for
Linux*


h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]:

コンパイラだけにした。必要なコンポーネントがあれば、他のコンポーネントにも「X」をつけておく。1番を選択し、

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/composerxe-2011.4.191 ]
3. Change components to install  [ Custom ]
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]:

元の画面に戻ってくる。

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/composerxe-2011.4.191 ]
3. Change components to install  [ Custom ]
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]: 4

一応、4を選択し、サマリーを表示させてみる。

Step no: 4 of 6 | Options > Pre-install Summary
--------------------------------------------------------------------------------
Install location:
/opt/intel/composerxe-2011.4.191
Component(s) selected:
Intel(R) Composer XE 2011 for Linux*
Intel(R) C++ Compiler XE version 12.0 for Linux*
(for applications running on Intel(R) 64)

--------------------------------------------------------------------------------
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/composerxe-2011.4.191 ]
3. Change components to install  [ Custom ]
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

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(R) C++ Compiler XE 12.0 Update 4 for Linux*
              (for applications running on Intel(R) 64) component... done
--------------------------------------------------------------------------------
Press "Enter" key to continue

このようなメッセージが出る。Enterキーを押して、

Step no: 6 of 6 | Complete
--------------------------------------------------------------------------------
Thank you for installing and for using the
Intel(R) Composer XE 2011 Update 4 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?clientsn=WXY
Z-ABCDEFGH

To get started using Intel(R) Composer XE 2011 Update 4 located in
/opt/intel/composerxe-2011.4.191: 
- 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_c.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]: 

これでインストーラによるインストールは完了。
最後に、パスの設定などをおこなうのであるが、これは簡単で、インストール時に作成されるiccvars.shを引数を指定して実行すればよい。
iccvars.shは
/opt/intel/bin
/opt/intel/composerxe/bin
/opt/intel/composerxe-2011/bin
/opt/intel/composerxe-2011.4.191/bin
に存在する。どれを実行してもよい。/opt/intel/binにあるiccvars.shを実行すれば、今後、製品がバージョンアップしてもこの同じディレクトリのiccvars.shを使うことができる(バージョンアップのたびに/opt/intel/bin/iccvars.shは書き換えられる)。一方、/opt/intel/composerxe-2011.4.191/binにあるiccvars.shを実行するように指定した場合、バージョンアップごとに、composerxe-2011.4.191を書き換える必要がある。逆に、特定のバージョンを使いたい場合には便利である。

bashであれば、.bashrcに

source /opt/intel/bin/iccvars.sh intel64

と一行入れて、自動的に環境変数をセットするようにする。また最後の引き数は32bit版であればia32、64bit版であればintel64にする。
ログインしなおして

$ icc --version
icc (ICC) 12.0.4 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.

のように出れば成功である。

以下は古い文書

Ubuntu 10.04にIntelコンパイラバージョン11.1をインストールする

Intelコンパイラはバージョン11.1の時点では、Ubuntu 9.04までしか公式には対応していない。
しかしインテル自身が9.10および10.04にインストールする方法を公開している。

まずダウンロードしたファイルを解凍する

$ tar zxvf l_cproc_p_11.1.072_intel64.tgz

次に、g++ rpm ia32-libsが必要であるので、apt-getでインストールする。

$ sudo apt-get install g++ rpm ia32-libs

次に、Ubuntu 9.10以降libstdc++5がなくなってしまったので、手動でインストールする。

http://packages.debian.org/stable/base/libstdc++5 からamd64用とi386用の両方をダウンロードしてくる。
そしてまず、64bit用の方はdpkgをつかってインストールする。

$ sudo dpkg -i libstdc++5_3.3.6-18_amd64.deb

32bit用のファイルは、以上インストールだと望みの場所にインストールしてくれないので、パッケージからファイルを取り出してインストールする。
まず、

$ sudo dpkg --extract libstdc++5_3.3.6-18_i386.deb ./

で解凍する。そして、次のように打つ。

$ cd usr/lib
$ sudo cp libstdc++.so.5.0.7 /usr/lib32
$ cd /usr/lib32
$ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

これで下準備は終了。
インテルのサイトからダウンロードして解凍してできたディレクトリl_cproc_p_11.1.072_intel64に移り、./install.shコマンドを実行する。

$ sudo ./install.sh

あとはメニュー形式ですすむ

Step no: 1 of 7 | Welcome
--------------------------------------------------------------------------------
Welcome to the Intel(R) C++ Compiler Professional Edition for Linux* version
11.1.

Intel(R) C++ Compiler Professional Editions include not only the
high-performance Intel(R) C++ Compiler, but also Intel(R) Debugger, Intel(R)
Threading Building Blocks (Intel(R) TBB), Intel(R) Integrated Performance
Primitives (Intel(R) IPP), 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 agreement
Step 3 : Activation option
Step 4 : Installation configuration
Step 5 : Configuration summary
Step 6 : Installation
Step 7 : Installation complete
--------------------------------------------------------------------------------
Press "Enter" key to continue or "q" to quit:

ここはEnterキーで先に進む。

Step no: 2 of 7 | License agreement
--------------------------------------------------------------------------------
To continue with the installation, you must accept the terms and conditions of
the End User License Agreement (EULA). The EULA will be displayed with the
"more" utility. While viewing the EULA, press the spacebar to page down or
press the "q" key to quit viewing the EULA. After viewing the EULA, you will
have the choice to either accept or decline the terms and conditions of the
EULA.
--------------------------------------------------------------------------------
1. View the license agreement (required) [default]

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]:

ここも1を選択して、ライセンスが表示されるので、同意したらacceptとタイプする。(読む際にスペースキーを押すと次々とめくることができる)

Step no: 3 of 7 | Activation options
--------------------------------------------------------------------------------
Activation requires a serial number and internet connection. It is a secure and
anonymous one-time process which verifies your software licensing rights to
enable use of the product.

You can also choose to install the software for evaluation purposes or activate
at a later time. The software will time out in 30 days.
--------------------------------------------------------------------------------
1. I want to activate and install my product [default]
2. I want to evaluate my product or activate later
3. Alternative activation - necessary if you plan to activate remotely (
because
this system may not be set for successful Internet connection), or use a
license file, or use a license server
4. View additional information about software activation

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: 3 of 7 | Activation Options - Provide Your Serial Number
--------------------------------------------------------------------------------
If you have a serial number, please select option 1 below and provide your
serial number to activate and install your software.
--------------------------------------------------------------------------------
1. Provide your serial number [default]
2. View additional information about software activation
3. How do I find my serial number?
4. Where can I purchase a serial number?

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: 3 of 7 | Activation Options - Provide Your Serial Number
--------------------------------------------------------------------------------
If you have a serial number, please select option 1 below and provide your
serial number to activate and install your software.
--------------------------------------------------------------------------------
1. Provide your serial number [default]
2. View additional information about software activation
3. How do I find my serial number?
4. Where can I purchase a serial number?

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]:
Note: Press "Enter" key to back to the previous menu.
Please type your serial number (the format is XXXX-XXXXXXXX):
--------------------------------------------------------------------------------
Activation completed successfully.
--------------------------------------------------------------------------------
Press "Enter" key to continue:

そして次へ進む。

Step no: 4 of 7 | Installation Type
--------------------------------------------------------------------------------
Congratulations! Your software has been activated. Please continue the
installation by choosing Typical Install (default installation options) or
Custom Install to change the default installation options.
--------------------------------------------------------------------------------
1. Typical Install (Recommended) [default]
2. Custom Install (For Advanced Users)

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]:

ディスクスペースを節約したいなどの理由がなければ、1でよい。
ここではUbuntu 10.04は公式にサポートされていないので、

Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
--------------------------------------------------------------------------------
There is one or more optional unresolved issues. It is highly recommended to fix
it all before you continue the installation. You can fix it without exiting from
the installation and re-check. Or you can quit from the installation, fix it and
run the installation again.
--------------------------------------------------------------------------------
Missing optional pre-requisite
-- No compatible Java* Runtime Environment (JRE) found
-- operating system type is not supported.
-- system glibc or kernel version not supported or not detectable
--------------------------------------------------------------------------------
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]:

のようなメッセージが出るが、1を選択してこのまま進める。

Step no: 5 of 7 | Configuration summary
--------------------------------------------------------------------------------
Select option "1" below to begin installing files based on the information you
provided. Use the "b" option to go back to the previous screen(s) if you need
to change any of the information below.
--------------------------------------------------------------------------------
Activation Type:
Serial Number: XXXX-XXXXXXXX
Component(s):
Intel(R) C++ Compiler Professional Edition for Linux*
Intel(R) C++ Compiler for applications running on Intel(R) 64
Intel(R) Debugger for applications running on Intel(R) 64
Intel(R) Math Kernel Library for applications running on Intel(R) 64
Intel(R) TBB for applications running on Intel(R) 64
Intel(R) IPP for applications running on Intel(R) 64
Location:
/opt/intel/Compiler/11.1/072
Install Mode:
NONRPM
--------------------------------------------------------------------------------
1. Install [default]

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: 6 of 7 | 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, please wait...
--------------------------------------------------------------------------------
Installing Intel(R) C++ Compiler for applications running on Intel(R) 64
component...
Intel(R) C++ Compiler for applications running on Intel(R) 64 component
installed successfully.
--------------------------------------------------------------------------------
Installing Intel(R) Debugger for applications running on Intel(R) 64
component...
Intel(R) Debugger for applications running on Intel(R) 64 component installed
successfully.
--------------------------------------------------------------------------------
Installing Intel(R) Math Kernel Library for applications running on Intel(R) 64
component...
Intel(R) Math Kernel Library for applications running on Intel(R) 64 component
installed successfully.
--------------------------------------------------------------------------------
Installing Intel(R) TBB for applications running on Intel(R) 64 component...
Intel(R) TBB for applications running on Intel(R) 64 component installed
successfully.
--------------------------------------------------------------------------------
Installing Intel(R) IPP for applications running on Intel(R) 64 component...
Intel(R) IPP for applications running on Intel(R) 64 component installed
successfully.
--------------------------------------------------------------------------------
Press "Enter" key to continue

Enterを押して次に進み

Step no: 7 of 7 | Installation complete
--------------------------------------------------------------------------------
Thank you for installing and for using the
Intel(R) C++ Compiler Professional Edition for Linux* version 11.1.

Your Subscription Service starts with your activation. Create your support
account now in order to access free product updates and upgrades. In addition
to product updates and upgrades, you will get access to interactive issue
management and communications, technical support, sample code, and
documentation.
Support services start from the time you install or activate your product, so
please be sure to create your support account now in order to take full
advantage of your product purchase.

To create your support account, please visit the Subscription Services web site
https://registrationcenter.intel.com/RegCenter/registerexpress.aspx?clientsn=XXX
X-XXXXXXXX
--------------------------------------------------------------------------------
h. Help
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [q]:

これでインストーラによるインストールは完了。
最後に、パスの設定などをおこなうのであるが、これは簡単で、bashであれば、.bashrcに

source /opt/intel/Compiler/11.1/072/bin/iccvars.sh intel64

と一行入れて、自動的に環境変数をセットするようにする。11.1/072はバージョンによって異なる。また最後の引き数は32bit版であればia32、64bit版であればintel64、Itaniumであればia64にする。
ログインしなおして

$ icc --version
icc (ICC) 11.1 20100414
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

のように出れば成功である。


古い文書

ここでは、ubuntu 8.04での例。

なお、64bit版でも32bitライブラリが必要なようで、

$ sudo apt-get install ia32-libs

と打って、あらかじめインストールしておく。

また

$ sudo apt-get install libstdc++5

もインストールされている必要がある。

まずはここからダウンロード。

そして、解凍

$ tar zxvf l_cc_p_10.1.015_intel64

解凍してできたディレクトリ、l_cc_p_10.1.015_intel64に移動。

$ cd l_cc_p_10.1.015_intel64

そして、install.shを実行する。

$ sudo ./install.sh

もしここで、

ERROR: Problem encountered executing CHKLIC_32_64 utility located here:
/home/foo/l_cc_p_10.1.015_intel64/data/chklic.em64t

The CHKLIC_32_64 program data/chklic.em64t requires these libraries:
not a dynamic executable

Please consult the installation guide (INSTALL.txt or INSTALL.htm),
the Pre-install FAQ (Preinstall_FAQ.htm), and the Release Notes,
located in the /home/satod/Desktop/l_cc_p_10.1.015_intel64 directory, to ensure that you have
the necessary system files and that you are installing on a
supported operating system.


Certain Ubuntu installations do not by default contain all of the
components which may be needed to install or operate this product.

For Ubuntu versions 7 and later, to install these components,
you can run the following commands:

sudo apt-get install build-essential
sudo apt-get install libstdc++5

For operation of some 32-bit products on 64-bit operating systems,
the following additional commands may be necessary:

sudo apt-get install ia32-libs
sudo apt-get install libc6-dev-i386

このようなエラーが出たら、下記のコマンドを実行して、それぞれパッケージをインストールする。

$ sudo apt-get install build-essential
$ sudo apt-get install libstdc++5
$ sudo apt-get install ia32-libs
$ sudo apt-get install libc6-dev-i386

なお、これ以外にも、

$ sudo apt-get install alien
$ sudo apt-get install g++-multilib

これらをインストールしていないと、インストーラが前に進まない。
インストーラが起動すれば後はメニューに沿って実行していけばよい。

===============================================================================
Welcome to the Intel(R) C++ Compiler 10.1.015 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:

シリアルナンバーを入れて

Installation package for Intel(R) 64.
Checking Dependencies ...
Checking operating system requirements ................................
Detected operating system Debian* (generic) is not supported.

Checking Kernel and glibc dependencies ...
Checking gcc version ...

Your platform :
architecture = x86_64
kernel = 2.6.24-19-generic
glibc = /lib/libc-2.7.so
operating system = Debian* (generic)

This product is supported for use with the following combinations :

Machine Type Kernel glibc

Intel(R) 64 2.4.21 2.3.2
Intel(R) 64 2.6.x. 2.3.x
Intel(R) 64 2.6.x. 2.4.x
Intel(R) 64 2.6.x. 2.5.x
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でインストール。

--------------------------------------------------------------------------------
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 :


THESE LIBRARIES, SOURCE CODE, DOCUMENTATION, OR OTHER MATERIALS ARE PROVIDED ON
THIS MEDIA OR IN THIS DISTRIBUTION SOLELY AS A CONVENIENCE TO THE END USER.

These materials and documentation may be redistributed and/or modified under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation. Specific terms are available online at www.gnu.org or are alternativ
ely
available from the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA.

These materials and documentation are distributed in the hope that they will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Intel Corporation asserts no rights in these materials, and disclaims all
liability, including liability for infringement of any proprietary rights. No
license, express or implied, by estoppel or otherwise, to any intellectual
property rights is granted herein by Intel Corporation.

'accept' to continue, 'reject' to return to the main menu :

ライセンスに同意したら
accept
を入力。
さらにもう少しライセンスが続く。もういちど、
accept
を入力。

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/cce/10.1.015] :

デフォルト値でOKなのでリターン。

--------------------------------------------------------------------------------
Intel(R) Substitute Headers for C++ Compiler for applications running on Intel(R) 64, Version 10.1.015
Installing...
Installation successful.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Intel(R) C++ Compiler for applications running on Intel(R) 64, Version 10.1.015
Installing...
Installation successful.
--------------------------------------------------------------------------------

Testing Intel(R) C/C++ compilers installed in /opt/intel/cce/10.1.015 ...
ERROR: Output file /tmp/install_cc.sh8933/test_cc.8933 not found
cat: /tmp/install_cc.sh8933/test_cc.8933.output: No such file or directory
Problems with C compiler: Output not equal to <Hello, World! C>
----------------------------------------------------
Contents of /tmp/install_cc.sh8933/test_cc.8933.log:
Intel(R) C Compiler for applications running on Intel(R) 64, Version 10.1 Build 20080312 Package ID: l_cc_p_10.1.015
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

/opt/intel/cce/10.1.015/bin/mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
compilation aborted for /tmp/install_cc.sh8933/test_cc.8933.c (code 127)
Problems with C compiler: <>!=<Hello, World! C>
----------------------------------------------------

NOTE: Save a copy of these files if you want to
preserve them for problem resolution.

Press ENTER to continue.

ここもリターン。

ERROR: /tmp/install_cc.sh8933/test_cc.8933 file not found
Problems with C++ compiler: Output not equal to <Hello, World! C++>
----------------------------------------------------
Contents of /tmp/install_cc.sh8933/test_cc.8933.log:
Intel(R) C Compiler for applications running on Intel(R) 64, Version 10.1 Build 20080312 Package ID: l_cc_p_10.1.015
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

/opt/intel/cce/10.1.015/bin/mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
compilation aborted for /tmp/install_cc.sh8933/test_cc.8933.c (code 127)
Problems with C compiler: <>!=<Hello, World! C>
-----------------------------------------------------
icpc found in /opt/intel/cce/10.1.015/bin/icpc
icpc -V output:
Intel(R) C++ Compiler for applications running on Intel(R) 64, Version 10.1 Build 20080312 Package ID: l_cc_p_10.1.015
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

/opt/intel/cce/10.1.015/bin/mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
compilation aborted for /tmp/install_cc.sh8933/test_cc.8933.cpp (code 127)
-----------------------------------------------------
----------------------------------------------------

NOTE: Save a copy of these files if you want to
preserve them for problem resolution.

Press ENTER to continue.

ここもリターン。

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/idbe/10.1.015] :

ここも特にデフォルト値で問題ない。

--------------------------------------------------------------------------------
Intel(R) Debugger for applications running on Intel(R) 64, Version 10.1.015
Installing...
Installation successful.
--------------------------------------------------------------------------------


Successfully installed:

Intel(R) Substitute Headers for C++ Compiler for applications running on Intel(R) 64, Version 10.1.015
intel-isubhe101015-10.1.015-1.em64t.rpm

Intel(R) C++ Compiler for applications running on Intel(R) 64, Version 10.1.015
intel-icce101015-10.1.015-1.em64t.rpm

Intel(R) Debugger for applications running on Intel(R) 64, Version 10.1.015
intel-iidbe101015-10.1.015-1.em64t.rpm



Please refer to <install_directory>/doc/Getting_Started.htm to view
instructions on how to invoke the product.




Press ENTER to continue ...

Installation is complete:

これで完了。

$ /opt/intel/cce/10.1.015/bin/icc -v

と打って、

Version 10.1

と表示されればOK。

最後に、bashであれば、.bashrcに

source /opt/intel/Compiler/11.1/059/bin/iccvars.sh intel64

と一行入れて、自動的に環境変数をセットするようにする。11.1/059はバージョンによって異なる。また最後の引き数は32bit版であればia32、64bit版であればintel64、Itaniumであればia64にする。

openSUSE

なお、openSUSEで64ビット版インテルコンパイラ11.0.081インストールをインストールした際に、

libstdc++.so.5: cannot open shared object file intel compiler

というエラーが出てコンパイルできなかった。

yastから、libstdc++33をインストールしたら、コンパイルできるようになった。

インテルコンパイラかどうかの判定

インテルコンパイラでコンパイルした場合、__INTEL_COMPILERがdefineされている。

#ifdef __INTEL_COMPILER
//インテルコンパイラの場合にコンパイルされる
#endif


最終更新日


本文中のFC4はFedora ProjectのFedora Core 4を、FC5はFedora Core 5を、FC6はFedora Core 6をopenSUSEはNovellのSUSE Linux OSSを表します。Fedora7以降は、単にFedora7、Fedora8、Fedora9、Fedora10、Fedora11、Fedora12、Fedora13、Fedora14、Fedora15と表示しています。Ubuntuは、必要に応じて20.04、21.04のようにバージョン番号をつけて区別しています。

ここに登場するドメイン名やIPアドレスなどはフィクションです。実在の人物・団体等とは一切関係がありません。
実際に使用する際は、各自の環境に合わせて書き換えてください。
もし何か間違いなどありましたらこちらからご連絡ください
リンクに許可は不要です。
Copyright (C) 2021 Chikuma Engineering Co., Ltd. All Rights Reserved.