分页: 1 / 1

关于ifort 11.1的license问题

发表于 : 2009-09-14 9:58
limh
大家好! :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

Re: 关于ifort 11.1的license问题

发表于 : 2009-10-16 18:09
qiuyaoboy
把:

代码: 全选

source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
加到你主目录中的 .bashrc 当中去

Re: 关于ifort 11.1的license问题

发表于 : 2009-12-07 11:22
banban
qiuyaoboy 写了:把:

代码: 全选

source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
加到你主目录中的 .bashrc 当中去
您好,同问,要放到.bashrc 文件的哪里呢?直接放在最后面么?多谢。。。

Re: 关于ifort 11.1的license问题

发表于 : 2009-12-07 11:48
sunzhaoyu2000
放在哪里都行
放在最后可以哪

Re: 关于ifort 11.1的license问题

发表于 : 2009-12-07 11:57
banban
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

Re: 关于ifort 11.1的license问题

发表于 : 2009-12-10 10:38
a14331990

Re: 关于ifort 11.1的license问题

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