大家好!
为何我每次重开终端都要重新输入 "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
关于ifort 11.1的license问题
-
- 帖子: 1
- 注册时间: 2009-09-14 9:51
-
- 帖子: 7
- 注册时间: 2009-10-15 17:37
Re: 关于ifort 11.1的license问题
把:
加到你主目录中的 .bashrc 当中去
代码: 全选
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
- banban
- 帖子: 3340
- 注册时间: 2008-03-23 17:01
Re: 关于ifort 11.1的license问题
您好,同问,要放到.bashrc 文件的哪里呢?直接放在最后面么?多谢。。。qiuyaoboy 写了:把:加到你主目录中的 .bashrc 当中去代码: 全选
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
-
- 帖子: 700
- 注册时间: 2006-10-18 15:48
Re: 关于ifort 11.1的license问题
放在哪里都行
放在最后可以哪
放在最后可以哪
- banban
- 帖子: 3340
- 注册时间: 2008-03-23 17:01
Re: 关于ifort 11.1的license问题
哦,谢谢。另外,我的用 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”。sunzhaoyu2000 写了:放在哪里都行
放在最后可以哪
是不是因为我用的是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问题
关于libstdc++5看这篇帖子
viewtopic.php?f=70&t=246895
下载这个
http://ftp.us.debian.org/debian/pool/ma ... 8_i386.deb
viewtopic.php?f=70&t=246895
下载这个
http://ftp.us.debian.org/debian/pool/ma ... 8_i386.deb
qq 591799783
email a14331990#hotmail.com a14331990#163.com
email a14331990#hotmail.com a14331990#163.com
- banban
- 帖子: 3340
- 注册时间: 2008-03-23 17:01
Re: 关于ifort 11.1的license问题
多谢,已经搞定了,呵呵a14331990 写了:关于libstdc++5看这篇帖子
viewtopic.php?f=70&t=246895
下载这个
http://ftp.us.debian.org/debian/pool/ma ... 8_i386.deb