安装Intel Fortran 编译器(Ubuntu 7.04 64位)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
zhaozhh02
帖子: 43
注册时间: 2006-07-22 15:25

安装Intel Fortran 编译器(Ubuntu 7.04 64位)

#1

帖子 zhaozhh02 » 2007-04-26 15:39

安装Intel Fortran 编译器(Ubuntu 7.04 64位)
虽然我的系统是64位,但我认为对32位也是适用的。

1,注册下载网址:
http://www.intel.com/cd/software/produc ... 219857.htm

2,
sudo apt-get install rpm build-essential
3,解压缩
tar xvzf l_fc_c_9.1.043.tar.gz

4,修改安装文件
cd l_fc_c_9.1.043/data
sudo gedit install_fc.sh
把其中的大约231行的“RPM_NOT_FOUND=$?”改为“RPM_NOT_FOUND=1”
保存退出

5,安装
cd ll_fc_c_9.1.043
sudo ./install.sh
如果授权文件不行的话,可以使用序列号在邮件里。

6,设置
cd /opt/intel/fce/9.1.043/bin
修改里面的所有脚本文件,例如ifort,ifc,ifortvas.sh,profrun,等的第一行"#!/bin/sh "为"#!/bin/bash "
修改 /etc/enviroment
在其中加入
export LC_ALL=zh_CN.UTF-8
修改 gedit ./bashrc
在最后加入:source /opt/intel/fce/9.1.043/bin/ifortvars.sh

7,测试
编写 test.f90
代码:
program hello_world
implicit none
print *, "hello world"
end program hello_world
执行:
ifort -o test test.f90
./test
显示:hello world
Over!Good lucky!
上次由 zhaozhh02 在 2007-05-13 15:15,总共编辑 1 次。
系统: Ubuntu8.04

如无必要,毋增实体
Lyricz
帖子: 13
注册时间: 2005-09-06 16:59

#2

帖子 Lyricz » 2007-04-27 14:35

支持一把。
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#3

帖子 stlxv » 2007-04-27 17:05

...那么麻烦,我装icc的时候直接执行安装程序照做就行了,不过要先装rpm
PHP是最好的语言!不服来战!
回复