关于ifort 11.1的license问题

编译打包和其他
回复
limh
帖子: 1
注册时间: 2009-09-14 9:51

关于ifort 11.1的license问题

#1

帖子 limh » 2009-09-14 9:58

大家好! :em01
为何我每次重开终端都要重新输入 "source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32" and "export INTEL_LICENCE_PATH=/opt/intel/licenses/licenses" 否则就会出现找不到"ifort" 命令的错误

The Installation Guide(http://www.intel.com/software/products/ ... NSTALL.htm)
说 "The compiler installation program creates compiler environment script files (ifortvars.sh/idbvars.sh) that set these variables. It is strongly recommended that you add those script files into your login script (.login file). Once the variables are set in the ".login" file there is no need to run the script files for each session..."
我找到csh.login( not .login) in the /etc/... directory,然后打开:


# /etc/csh.login

# System wide environment and startup programs, for login setup

if ($?PATH) then
if ( "${path}" !~ */usr/X11R6/bin* ) then
setenv PATH "${PATH}:/usr/X11R6/bin"
endif
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin"
endif
endif

setenv HOSTNAME `/bin/hostname`
set history=1000

if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
if ($?prompt) then
source $i
else
source $i >& /dev/null
endif
endif
end
unset i nonomatch
endif

The question is : 我怎么样才能修改login文件使得不用每次开机都得重新设置license的路径?(I don't know how to add those compiler environment script files (ifortvars.sh/idbvars.sh)into the login script?
Best regards, a novice limh
qiuyaoboy
帖子: 7
注册时间: 2009-10-15 17:37

Re: 关于ifort 11.1的license问题

#2

帖子 qiuyaoboy » 2009-10-16 18:09

把:

代码: 全选

source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
加到你主目录中的 .bashrc 当中去
头像
banban
帖子: 3340
注册时间: 2008-03-23 17:01

Re: 关于ifort 11.1的license问题

#3

帖子 banban » 2009-12-07 11:22

qiuyaoboy 写了:把:

代码: 全选

source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
加到你主目录中的 .bashrc 当中去
您好,同问,要放到.bashrc 文件的哪里呢?直接放在最后面么?多谢。。。
sunzhaoyu2000
帖子: 700
注册时间: 2006-10-18 15:48

Re: 关于ifort 11.1的license问题

#4

帖子 sunzhaoyu2000 » 2009-12-07 11:48

放在哪里都行
放在最后可以哪
头像
banban
帖子: 3340
注册时间: 2008-03-23 17:01

Re: 关于ifort 11.1的license问题

#5

帖子 banban » 2009-12-07 11:57

sunzhaoyu2000 写了:放在哪里都行
放在最后可以哪
哦,谢谢。另外,我的用 ifort hello.f90 时, 终端提示“error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory” 。然后我又想装这个库,用的是 “$ sudo apt-get install compat-libstdc++” ,却又提示说“E: 无法找到软件包 compat-libstdc”。
是不是因为我用的是Ubuntu 8.04 的缘故呢?是不是8.04不支持intel fortran 11.1阿
不知道该怎么办咯,55555
头像
a14331990
帖子: 602
注册时间: 2009-03-25 9:38
系统: Fedora 22 x86_64

Re: 关于ifort 11.1的license问题

#6

帖子 a14331990 » 2009-12-10 10:38

qq 591799783
email a14331990#hotmail.com a14331990#163.com
头像
banban
帖子: 3340
注册时间: 2008-03-23 17:01

Re: 关于ifort 11.1的license问题

#7

帖子 banban » 2009-12-10 10:46

a14331990 写了:关于libstdc++5看这篇帖子
viewtopic.php?f=70&t=246895
下载这个
http://ftp.us.debian.org/debian/pool/ma ... 8_i386.deb
多谢,已经搞定了,呵呵
回复