查看文章
 
Install Intel Fortran/C++ Compilers for Fedora (Linux)
2011/01/15 4:18 P.M.

Install Intel Fortran/C++ Compilers for Fedora (Linux)

Jiajun Chong       UCB/USTC           Jan 15, 2011

1. Dowload non commerical F/C compilers from:

http://software.intel.com/en-us/articles/non-commercial-software-development/

An email will be sent to you with the licenses.

suppose all *.tgz files are downloaded in a directory named "intel_src"

 

2.make a directory "intel" in /opt/ as a root user, and copy all licenses to a sub-directory "/opt/intel/licenses":

$su      ! passwd

$mkdir /opt/intel

$mkdir /opt/intel/licenses

$cp  *.lic  /opt/intel/licenses

 

3. unzip all *.tgz files:

for i in *.tgz;do tar xvfz $i;done

 

4. Installation:  (install as a root user)

(1) Fortran:

$cd l_fcompxe_ia32_2011.1.107

$./install.sh

"Enter" to accept default choice, and "Skip missing optional pre-requisites", accept license agreement.

Use existing license; And "Enter" to start installation now; Wait several minutes and press "Enter" twice to finish installation.

(2) C:

$ cd ../l_ccompxe_ia32_2011.1.107

$./install.sh

accept all default choices, and exit from root.

 

5. Setting:

open ~/.bashrc

$vi ~/.bashrc

and add following line into it:

source /opt/intel/bin/compilervars.sh ia32            #(if u r using 32-bit platform, otherwise replace "ia32" with "intel64" for 64-bit)

write and quit.

(OR just $echo source /opt/intel/bin/compilervars.sh ia32 >> ~/.bashrc)

then run:

$source ~/.bashrc

OK, congratulations, all installation finished!

 

Note:

         (1) make sure what's your platform 32-bit or 64-bit.

        (2) If  forbiddened by selinux when running "install.sh", please set seLinux to "disabled"  by 

              $vi /etc/sysconfig/selinux 

              and replace "SELINUX=enforcing" with "SELINUX=disabled" then reboot.

          (3) MKL is installed at the same time!

          (4) My systerm is Fedora 14, and compiler is intel-2011 updated 1.

 

-------------------------------some information when you finished installation------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------

 


类别:Fortran||添加到搜藏 |分享到i贴吧|浏览(2063)|评论 (0)
 
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu