centos6.0 intel编译器安装后,为什么设置环境变量时出现下面的问题?
bash: PROD_DIR=/opt/intel/composerxe-2011.4.191: 没有那个文件或目录
[root@localhost bin]# source compilervars.csh
bash: PROD_DIR=/opt/intel/composerxe-2011.4.191: 没有那个文件或目录
[root@localhost bin]# more compilervars.csh
#
# Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
#
# The information and source code contained herein is the exclusive property
# of Intel Corporation and may not be disclosed, examined, or reproduced in
# whole or in part without explicit written authorization from the Company.
#
#!/bin/tcsh
set PROD_DIR=/opt/intel/composerxe-2011.4.191
if ( "$1" != "ia32" && "$1" != "intel64" ) then
echo "ERROR: Unknown switch '$1'. Accepted values: ia32, intel64"
exit 1
endif
if ( -e $PROD_DIR/pkg_bin/idbvars.csh ) then
source $PROD_DIR/pkg_bin/idbvars.csh $1;
endif
if ( -e $PROD_DIR/tbb/bin/tbbvars.csh ) then
source $PROD_DIR/tbb/bin/tbbvars.csh $1;
endif
if ( -e $PROD_DIR/mkl/bin/mklvars.csh ) then
source $PROD_DIR/mkl/bin/mklvars.csh $1 $2;
endif
if ( -e $PROD_DIR/ipp/bin/ippvars.csh ) then
source $PROD_DIR/ipp/bin/ippvars.csh $1;
endif
if ( -e $PROD_DIR/pkg_bin/compilervars_arch.csh ) then
source $PROD_DIR/pkg_bin/compilervars_arch.csh $1;
endif
fi
fi
fi
fi
fi
fi
[root@localhost bin]# pwd
/opt/intel/composerxe-2011.4.191/bin
[root@localhost bin]#
alick 于 2011-09-27 10:29:05发表:
注意脚本是 csh 脚本,不是 bash 脚本。你需要用 tcsh 运行它。[code]tcsh compilervars.csh[/code]或者确认脚本加了可执行位,然后[code]./compilervars.csh[/code]有可能系统上没有安装 tcsh,那么就 yum install tcsh