24小时热门版块排行榜    

查看: 2299  |  回复: 7
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

letianhan

木虫 (著名写手)

[求助] ifort 安装后环境变量的设置 已有1人参与

我安装了centos  下安装了ifort11.1,
在~/.bashrc 里面添加了:
source /opt/intel/Compiler/11.1/080/bin/ifortvars.sh  intel64

结果开机后终端显示:
ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64
请问是怎么回事?我需要改动什么地方吗??
请高手指点下。


附ifortvars.sh  文件如下:

#!/bin/sh
#
# Copyright  (C) 1985-2010 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.
#

case "intel64" in
  intel64)
      if [ -e /opt/intel/Compiler/11.1/080/bin/intel64/idbvars.sh ]; then
         . /opt/intel/Compiler/11.1/080/bin/intel64/idbvars.sh
      fi
      if [ -e /opt/intel/Compiler/11.1/080/tbb/bin/tbbvars.sh ]; then
         . /opt/intel/Compiler/11.1/080/tbb/bin/tbbvars.sh intel64
      fi
      if [ -e /opt/intel/Compiler/11.1/080/Frameworks/tbb/bin/tbbvars.sh ]; then
         . /opt/intel/Compiler/11.1/080/Frameworks/tbb/bin/tbbvars.sh intel64
      fi
      if [ -e /opt/intel/Compiler/11.1/080/mkl/tools/environment/mklvarsem64t.sh ]; then
         . /opt/intel/Compiler/11.1/080/mkl/tools/environment/mklvarsem64t.sh
      fi
      if [ -e /opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh ]; then
         . /opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh
      fi
      if [ -e /opt/intel/Compiler/11.1/080/ipp/em64t/tools/env/ippvarsem64t.sh ]; then
         . /opt/intel/Compiler/11.1/080/ipp/em64t/tools/env/ippvarsem64t.sh
      fi
      if [ -e /opt/intel/Compiler/11.1/080/Frameworks/ipp/tools/env/ippvarsem64t.sh ]; then
         . /opt/intel/Compiler/11.1/080/Frameworks/ipp/tools/env/ippvarsem64t.sh
      fi
      if [ -e /opt/intel/Compiler/11.1/080/bin/intel64/ifortvars_intel64.sh ]; then
         . /opt/intel/Compiler/11.1/080/bin/intel64/ifortvars_intel64.sh
      fi
       ;;
  *)
      if [ "`uname`" =  "david" ]; then
          echo "ERROR: Unknown switch '$1'. Accepted values: ia32, intel64"
      else

          echo "ERROR: Unknown switch '$1'. Accepted values: ia32, intel64, ia64"
      fi
      ;;
esac
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

KalaShayminS

铁杆木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
把bashrc这行删了重新写一遍吧。
3楼2014-10-08 18:07:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

letianhan

木虫 (著名写手)

进入用户终端后显示:
ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64
[han@localhost ~]$ su
Password:
ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64
2楼2014-10-08 17:02:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

letianhan

木虫 (著名写手)

引用回帖:
3楼: Originally posted by KalaShayminS at 2014-10-08 18:07:17
把bashrc这行删了重新写一遍吧。

试过好几次,重写命令,不行。依旧出现ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64
4楼2014-10-08 18:30:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

KalaShayminS

铁杆木虫 (著名写手)

【答案】应助回帖

引用回帖:
4楼: Originally posted by letianhan at 2014-10-08 18:30:51
试过好几次,重写命令,不行。依旧出现ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64...

直接运行这个命令是什么错误?
5楼2014-10-08 20:08:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿陕师大生物学071000,298分,求调剂 +3 SYA! 2026-03-23 3/150 2026-03-23 19:09 by macy2011
[考研] 07化学280分求调剂 +3 722865 2026-03-23 3/150 2026-03-23 18:48 by macy2011
[考研] 接收2026硕士调剂(学硕+专硕) +4 allen-yin 2026-03-23 6/300 2026-03-23 15:04 by 汪!?!
[考研] 298求调剂 +8 上岸6666@ 2026-03-20 8/400 2026-03-23 11:02 by laoshidan
[考研] 333求调剂 +6 87639 2026-03-21 10/500 2026-03-23 10:41 by Iveryant
[考研] 310求调剂 +4 baibai1314 2026-03-16 4/200 2026-03-22 20:19 by edmund7
[考研] 260求调剂 +3 朱芷琳 2026-03-20 4/200 2026-03-22 15:12 by 朱芷琳
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 一志愿东华大学控制学硕320求调剂 +3 Grand777 2026-03-21 3/150 2026-03-21 19:23 by 简之-
[考研] 求调剂 +4 要好好无聊 2026-03-21 4/200 2026-03-21 18:57 by 学员8dgXkO
[考研] 材料学学硕080502 337求调剂-一志愿华中科技大学 +4 顺顺顺mr 2026-03-18 5/250 2026-03-21 10:22 by luoyongfeng
[考研] 南昌大学材料专硕311分求调剂 +6 77chaselx 2026-03-20 6/300 2026-03-21 07:24 by JourneyLucky
[考研] 一志愿山大07化学 332分 四六级已过 本科山东双非 求调剂! +3 不想理你 2026-03-16 3/150 2026-03-21 03:59 by JourneyLucky
[考研] 301求调剂 +10 yy要上岸呀 2026-03-17 10/500 2026-03-21 03:14 by JourneyLucky
[考研] 初始318分求调剂(有工作经验) +3 1911236844 2026-03-17 3/150 2026-03-21 02:33 by JourneyLucky
[考研] 295求调剂 +4 一志愿京区211 2026-03-18 6/300 2026-03-20 23:41 by JourneyLucky
[考研] 材料与化工 322求调剂 +4 然11 2026-03-19 4/200 2026-03-20 22:12 by luoyongfeng
[考研] 295材料求调剂,一志愿武汉理工085601专硕 +5 Charlieyq 2026-03-19 5/250 2026-03-20 20:35 by JourneyLucky
[考研] 0856调剂,是学校就去 +8 sllhht 2026-03-19 9/450 2026-03-20 14:25 by 无懈可击111
[考研] 0703化学调剂 +5 pupcoco 2026-03-17 8/400 2026-03-19 13:58 by houyaoxu
信息提示
请填处理意见