interl fortran 安装。

编译安装或者制作Deb包
回复
xuerui
帖子: 9
注册时间: 2008-12-03 14:55
送出感谢: 0
接收感谢: 0

interl fortran 安装。

#1

帖子 xuerui » 2008-12-08 11:06

按照前边一个帖子指导安装INTERL FORTRAN。
但是到这一步时候: e、设置环境变量
sudo perl -pi -w -e 's/!\/bin\/sh/!\/bin\/bash/g;' *
sudo perl -pi -w -e 's//\/opt\/intel\/fc\/10.1.008/g;' *
执行脚本文件
. ./ifort.sh
如果希望每次打开终端都能够自动设置,将

source /opt/intel/fc/10.1.008/bin/ifortvars.sh

加入到 ~/.bashrc 文件末尾。

我的问题是:root@cheng-desktop:/opt/intel/fc/10.1.021/bin# ../ifort.sh
bash: ../ifort.sh: No such file or directory
执行root@cheng-desktop:/opt/intel/fc/10.1.021/bin# source /opt/intel/fc/10.1.021/bin/ifortvars.sh
root@cheng-desktop:/opt/intel/fc/10.1.021/bin#
没反应。

什么问题呢? 菜鸟一个第一次安装。望大家多多请教。非常感谢。
xuerui
帖子: 9
注册时间: 2008-12-03 14:55
送出感谢: 0
接收感谢: 0

Re: interl fortran 安装。

#2

帖子 xuerui » 2008-12-08 11:16

又重新安装一次,过程是。
root@cheng-desktop:/opt/intel/fc/10.1.021/bin# sudo perl -pi -w -e 's/!\/bin\/sh/!\/bin\/bash/g;' *
root@cheng-desktop:/opt/intel/fc/10.1.021/bin# sudo perl -pi -w -e 's//\/opt\/intel\/fc\/10.1.021/g;' *
root@cheng-desktop:/opt/intel/fc/10.1.021/bin# ../ifort.sh
bash: ../ifort.sh: No such file or directory
root@cheng-desktop:/opt/intel/fc/10.1.021/bin# source /opt/intel/fc/10.1.021/bin/ifortvars.sh
bash: /opt/intel/fc/10.1.021#/opt/intel/fc/10.1.021!/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021l/opt/intel/fc/10.1.021s/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021l/opt/intel/fc/10.1.021s/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021#/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021l/opt/intel/fc/10.1.021s/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021l/opt/intel/fc/10.1.021s/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021: 是一个目录
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021: No such file or directory
bash: /opt/intel/fc/10.1.021/bin/ifortvars.sh: line 34: 在未预料的“(”附近出现语法错误
bash: /opt/intel/fc/10.1.021/bin/ifortvars.sh: line 34: `/opt/intel/fc/10.1.021/opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021M/opt/intel/fc/10.1.021A/opt/intel/fc/10.1.021N/opt/intel/fc/10.1.021P/opt/intel/fc/10.1.021A/opt/intel/fc/10.1.021T/opt/intel/fc/10.1.021H/opt/intel/fc/10.1.021=/opt/intel/fc/10.1.021"/opt/intel/fc/10.1.021//opt/intel/fc/10.1.021o/opt/intel/fc/10.1.021p/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021//opt/intel/fc/10.1.021i/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021l/opt/intel/fc/10.1.021//opt/intel/fc/10.1.021f/opt/intel/fc/10.1.021c/opt/intel/fc/10.1.021//opt/intel/fc/10.1.0211/opt/intel/fc/10.1.0210/opt/intel/fc/10.1.021./opt/intel/fc/10.1.0211/opt/intel/fc/10.1.021./opt/intel/fc/10.1.0210/opt/intel/fc/10.1.0211/opt/intel/fc/10.1.0218/opt/intel/fc/10.1.021//opt/intel/fc/10.1.021m/opt/intel/fc/10.1.021a/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021"/opt/intel/fc/10.1.021:/opt/intel/fc/10.1.021$/opt/intel/fc/10.1.021(/opt/intel/fc/10.1.021m/opt/intel/fc/10.1.021a/opt/intel/fc/10.1.021n/opt/intel/fc/10.1.021p/opt/intel/fc/10.1.021a/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021h/opt/intel/fc/10.1.021)/opt/intel/fc/10.1.021;/opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021e/opt/intel/fc/10.1.021x/opt/intel/fc/10.1.021p/opt/intel/fc/10.1.021o/opt/intel/fc/10.1.021r/opt/intel/fc/10.1.021t/opt/intel/fc/10.1.021 /opt/intel/fc/10.1.021M/opt/intel/fc/10.1.021A/opt/intel/fc/10.1.021N/opt/intel/fc/10.1.021P/opt/intel/fc/10.1.021A/opt/intel/fc/10.1.021T/opt/intel/fc/10.1.021H/opt/intel/fc/10.1.021'
root@cheng-desktop:/opt/intel/fc/10.1.021/bin#
什么问题?
sunzhaoyu2000
帖子: 700
注册时间: 2006-10-18 15:48
送出感谢: 0
接收感谢: 0

Re: interl fortran 安装。

#3

帖子 sunzhaoyu2000 » 2008-12-08 14:47

root@cheng-desktop:/opt/intel/fc/10.1.021/bin# ../ifort.sh
bash: ../ifort.sh: No such file or directory

原因是:ifort.sh本来就在当前目录/opt/intel/fc/10.1.021/bin下
所以
xuerui, $ ./ifort.sh即可
如果你
$ ../ifort.sh
系统会在上级目录/opt/intel/fc/10.1.021寻找ifort.sh,显然找不到啊



$ source /opt/intel/fc/10.1.021/bin/ifortvars.sh
没反应,其实就代表成功了啊


最后你的.bashrc被修改了后来你重新安装的,倒是除了除了问题,path写错了
方法是删除目录/opt/intel/fc,
把~/.bashrc还原
再装一次
xuerui
帖子: 9
注册时间: 2008-12-03 14:55
送出感谢: 0
接收感谢: 0

Re: interl fortran 安装。

#4

帖子 xuerui » 2008-12-08 14:57

非常感谢您的回帖。

在当前目录/opt/intel/fc/10.1.021/bin中没有ifort.sh这个文件,只有ifortvars.sh。
sunzhaoyu2000
帖子: 700
注册时间: 2006-10-18 15:48
送出感谢: 0
接收感谢: 0

Re: interl fortran 安装。

#5

帖子 sunzhaoyu2000 » 2008-12-08 16:23

那说明执行
source /opt/intel/fc/10.1.021/bin/ifortvars.sh
即可配置好环境了吧

为了以后自动生效,把上句添加到~/.bashrc尾部即可

再关掉终端
再打开
输入ifort看看有啥提示?

qq 917522484
xuerui
帖子: 9
注册时间: 2008-12-03 14:55
送出感谢: 0
接收感谢: 0

Re: interl fortran 安装。

#6

帖子 xuerui » 2008-12-08 23:39

非常感谢sunzhaoyu2000 的热心帮助。
回复

回到 “编译或打包”