ubuntu 安装intel iofrt 和icc编译器
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 安装intel iofrt 和icc编译器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
ubuntu 安裝intel iofrt 和icc編譯器
司馬踏歌 2013-01-17 12:24:01 一、編譯器的獲取:下載intel 非商業版的fortran和c++編譯器。
下載地址: http://software.intel.com/en-us/non-commercial-software-development
點擊ifort鏈接: Intel? Fortran Composer XE 2013 for Linux
按要求填寫郵件和地址,之后,intel會給該郵件發一封郵件,內有下載鏈接及激活的密鑰。
比如下載的ifort編譯器為: l_fcompxe_ia32_2013.1.117.tgz
二、具體安裝過程
下載完成之后,將文件復制在住文件夾下,在終端中完成安裝,具體步驟如下:
1、sudo apt-get install g++ 首先要安裝g++
?2、tar -vxzf l_fcompxe_ia32_2013.1.117.tgz
3、cd l_fcompxe_ia32_2013.1.117
4、sudo ./install.sh 回車
5、第4步之后,安裝過程會要求輸入accept 、密鑰等,照實輸入,其他回車即可,安裝過程可能有個java錯誤,忽略。
6、路徑的設置:sudo gedit ~/.bashrc
?????在.bashrc末尾加入ifort變量
?????source /opt/intel/composer_xe_2013.1.117/bin/ifortvars.sh ia32
?????source /opt/intel/composer_xe_2011.1.117/bin/ifortvars.sh intel64
????安裝icc步驟和上面一樣,重新下載icc的編譯器,最后環境變量稍微不同
????source /opt/intel/composer_xe_2011.1.117/bin/iccvars.sh ia32
????source /opt/intel/composer_xe_2011.1.117/bin/icctvars.sh intel64
?7、查看是否安裝成功。注銷,在終端輸入:which ifort
???本例子會顯示:/opt/intel/composer_xe_2013.1.117/bin/ia32/ifort
8、安裝成功
注:(環境變量的路徑獲取,打開ubuntu文件系統,依次進入opt/intel/composer_xe_2011.1.117/bin,在bin下找一個文件,右鍵查看屬性,有位置提示,復制即可)
總結
以上是生活随笔為你收集整理的ubuntu 安装intel iofrt 和icc编译器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MPICH3环境配置
- 下一篇: 《细胞》重磅成果!任兵课题组绘制迄今最大