2012年3月8日木曜日

Intel C Non-Commercial Software Development

[インストールの前の準備]
※tcshだとapt-getの「*」で起こられるので、必ずbashになってから行うこと。
>bash

>sudo apt-get install gcc*
>sudo apt-get install glib*
>sudo apt-get install libstdc*
>sudo apt-get install libgcc*
>sudo apt-get install build-essential
※A
>sudo apt-get install gcc-multilib
>sudo apt-get install rpm
>sudo apt-get install ia32-libs  (only needed if you install the 32bit compiler)
>sudo apt-get install openjdk-6-jre-headless
※Aのところで、
dpkg: error processing gmetad (--configure):                                              
  subprocess installed post-installation script returned error exit status 9  
Processing triggers for libc-bin ...                                                                
ldconfig deferred processing now taking place                                           
Errors were encountered while processing:                                                
  ganglia-monitor                                                                                           
  gmetad                                                                                                        
E: Sub-process /usr/bin/dpkg returned an error code (1)                            

というエラーを受けた場合の対処方法。

[対処方法]
>sudo adduser --system --ingroup ganglia --home /var/lib/ganglia ganglia
>sudo apt-add-repository ppa:mark-mims/ppa
>sudo apt-get update
>sudo apt-get install ganglia-webfrontend=3.1.7-2ubuntu4
>sudo apt-get install gmetad=3.1.7-2ubuntu4
>sudo apt-get install ganglia-monitor=3.1.7-2ubuntu4

(参照) : https://bugs.launchpad.net/ubuntu/+source/ganglia/+bug/854866





[ここからインストール]
1. "intel fortran non-commer"で検索する。
2. http://software.intel.com/en-us/articles/non-commercial-software-development/にアクセスする。
3. 誓約書を読み終わったら"Accept"をクリックする
4. "Intel® C++ Composer XE 2011 for Linux"をクリックする
5. クリックすると必要情報を聞かれるので記入する(メールアドレスや名前など)
6. versionなどを選択する。
今回は私は64bit版なので32/64bit対応版をダウンロードする。


7. ダウンロードは必ずセーブファイルに選択する。
※写真ではOpenになっているが、Saveを必ず選択するようにする。

8. ファイルは通常~/Downloadsの下に落ちるので、ホームに移動させる。
   >mv filename.tgz ~/

9. tarで展開する。
 a. tarで中身を確認する方法
   >tar -tvzf filename.tgz
 b. tarで展開する方法
   >tar -xvzf filename.tgz
10. ライセンスファイルを展開したディレクトリーに持ってくる。
5で必要情報を記入すると登録されたメールにメールが届き、その中に.licファイルがついてくるので、今回の場合、展開したファイルは~/filename/となっているはずなのでその下にlicファイルを置く。
11. rootになる。
   >su
suになれない場合はここを参照:http://tokky-info-memo.blogspot.com/2012/03/ubuntu-rootsu.html。
12. 実行する。
   >./install.sh
13. Press "Enter" key to continue or "q" to quit:でEnterを押す。

14. Please type a selection or press "Enter" to accept default choice [1] : 1
を選ぶ。
15. spaceでスクロールして、最後に「accept」と入力する。

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
16. ライセンス番号を入力。
a. Please type a selection or press "Enter" to accept default choice [1]: 1
を選ぶ。

b. ライセンスを入力する
Note: Press "Enter" key to back to the previous menu.
Please type your serial number (the format is XXXX-XXXXXXXX): XXXX-XXXXXXXX

17. ラインセスを確認する。
--------------------------------------------------------------------------------
Activation completed successfully.
--------------------------------------------------------------------------------
と出ることを確認し、次の
Press "Enter" key to continue: でEnterを押す。

18. Please type a selection or press "Enter" to accept default choice [1]: 1
を選ぶ。

19.
                                                           ↓
                                                           ↓
                                                           ↓
                                                           ↓
                                                           ↓
                                                           ↓


20. 
Press "Enter" key to continue
Enterで次へ。

21.

--------------------------------------------------------------------------------
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [q]:
Enterで終了。


[設定方法]
1. パスを引く
 set path=($path /opt/intel/composer_xe_2011_sp1.9.293/bin)
2. 実行方法
 set INTELCOMPILER = 12.1 #Compiler version
 ...
 if ( x$?INTELCOMPILER == x"12.1" ) then
 # Intel Compiler 12.1 .....
     if (-r /opt/intel/composer_xe_2011_sp1.9.293/bin/iccvars.csh) then
         source /opt/intel/composer_xe_2011_sp1.9.293/bin/iccvars.csh intel64
     endif
 endif
この二つを.tcshrcを記入する。
3. パスを通す。
   >cd  /opt/intel/composer_xe_2011_sp1.9.293/bin
   >ls -l
lrwxrwxrwx 1 root root    18 2012-03-09 17:25 iccvars.csh -> ./compilervars.csh*
lrwxrwxrwx 1 root root    17 2012-03-09 17:25 iccvars.sh -> ./compilervars.sh*
で確認する。リンク先を実行する。
   >source compilervars.csh intel64

4. パスが通ったか確認する。
   >icc -help
   >icc -v
   >which icc
などで確認。

0 件のコメント:

コメントを投稿