24小时热门版块排行榜    

查看: 519  |  回复: 0

zxrlioning

新虫 (初入文坛)

[求助] make出错

大家好,我的OS是ubuntu 12.0。已经装好了mpich2,ifort,icc。 新建了一个用户以后编译make file时提示ifort用不了了。 我ifort安装是没有问题的,环境变量也设置好了,在新建用户目录下which ifort也可以看到ifort,还可以用ifort运行.f90文件。但是编译Makefile.in或者make.inc的时候提示: ifort: command not found。
比如我编译lapack的时候就会出现如下错误提示:
zxr2@zxr:~/opt/lapack-3.1.0$ which icc
/opt/intel/composer_xe_2013_sp1.3.174/bin/intel64/icc
zxr2@zxr:~/opt/lapack-3.1.0$ which ifort
/opt/intel/composer_xe_2013_sp1.3.174/bin/intel64/ifort
zxr2@zxr:~/opt/lapack-3.1.0$ which mpicc
/opt/mpich2/bin/mpicc
zxr2@zxr:~/opt/lapack-3.1.0$ which mpif90
/opt/mpich2/bin/mpif90
zxr2@zxr:~/opt/lapack-3.1.0$ sudo make
( cd INSTALL; make; ./testlsame; ./testslamch; \
          ./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
make[1]: Entering directory `/home/zxr2/opt/lapack-3.1.0/INSTALL'
ifort  -O3 -xN -ip -c lsame.f
make[1]: ifort: Command not found
make[1]: *** [lsame.o] Error 127
make[1]: Leaving directory `/home/zxr2/opt/lapack-3.1.0/INSTALL'
  ASCII character set
  Tests completed
  Epsilon                      =   1.1920929E-07
  Safe minimum                 =   1.1754944E-38
  Base                         =    2.000000   
  Precision                    =   2.3841858E-07
  Number of digits in mantissa =    24.00000   
  Rounding mode                =   0.0000000E+00
  Minimum exponent             =   -125.0000   
  Underflow threshold          =   1.1754944E-38
  Largest exponent             =    129.0000   
  Overflow threshold           =        Infinity
  Reciprocal of safe minimum   =   8.5070592E+37
  Epsilon                      =   2.220446049250313E-016
  Safe minimum                 =   2.225073858507201E-308
  Base                         =    2.00000000000000     
  Precision                    =   4.440892098500626E-016
  Number of digits in mantissa =    53.0000000000000     
  Rounding mode                =   0.000000000000000E+000
  Minimum exponent             =   -1021.00000000000     
  Underflow threshold          =   2.225073858507201E-308
  Largest exponent             =    1025.00000000000     
  Overflow threshold           =                 Infinity
  Reciprocal of safe minimum   =   4.494232837155790E+307
Time for 1,000,000 SAXPY ops  =   0.00     seconds
*** Error:  Time for operations was zero
Including SECOND, time        =   0.00     seconds
Average time for SECOND       =   0.00     milliseconds
Time for 1,000,000 DAXPY ops  =   0.00     seconds
*** Error:  Time for operations was zero
Including DSECND, time        =   0.00     seconds
Average time for DSECND       =   0.00     milliseconds
LAPACK            3 .           1 .           0
( cd BLAS/SRC; make )
make[1]: Entering directory `/home/zxr2/opt/lapack-3.1.0/BLAS/SRC'
ifort  -O3 -xN -ip -c isamax.f
make[1]: ifort: Command not found
make[1]: *** [isamax.o] Error 127
make[1]: Leaving directory `/home/zxr2/opt/lapack-3.1.0/BLAS/SRC'
make: *** [blaslib] Error 2

搞了好久都没有搞明白,请问有没有高手能帮帮忙?感谢万分!(附make.inc和Makefile)
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zxrlioning 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 科研孤儿太难了 +6 我4大白菜 2026-08-20 6/300 2026-08-20 17:25 by Dylan.Ke
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] 只有每年这种时候来逛逛小木虫 +21 yaoyewhu2008 2026-08-20 22/1100 2026-08-20 17:03 by yaoyewhu2008
[基金申请] 时间戳又变了 +11 wuchongjun 2026-08-20 14/700 2026-08-20 16:26 by 虫友是什么虫
[基金申请] 言之凿凿,明天官网会通知放榜? +14 医学老男孩 2026-08-20 16/800 2026-08-20 15:47 by LNP@mRNA
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +16 Ldrop2023 2026-08-13 20/1000 2026-08-20 11:07 by xskun
[基金申请] 今天基金会出结果吗?20260819 +14 kkkl_v 2026-08-19 15/750 2026-08-20 08:21 by sunzitan
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 13/650 2026-08-19 21:28 by aasahr
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +5 瞬息宇宙 2026-08-15 5/250 2026-08-19 20:23 by super2002521
[基金申请] 今天放榜没戏了吧 +4 yuleib84 2026-08-19 5/250 2026-08-19 19:52 by hhs666
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] filecode=后面第一个是大写字母 +10 wangze12014 2026-08-14 12/600 2026-08-19 16:56 by 苦难博士
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +6 Tide man 2026-08-14 7/350 2026-08-19 09:56 by ZJTJZ
[基金申请] 什么时候开奖? +6 CrisMessi 2026-08-18 6/300 2026-08-19 08:06 by Equinoxhua
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 6/300 2026-08-18 15:36 by wwm09
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
信息提示
请填处理意见