24小时热门版块排行榜    

查看: 480  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 341求调剂(一志愿湖南大学070300) +4 番茄头--- 2026-03-22 5/250 2026-03-23 21:59 by fuyu_
[考研] 306求0703调剂一志愿华中师范 +6 纸鱼ly 2026-03-21 7/350 2026-03-23 19:06 by macy2011
[考研] 336化工调剂 +4 王大坦1 2026-03-23 5/250 2026-03-23 18:32 by allen-yin
[考研] 306求调剂 +9 chuanzhu川烛 2026-03-18 9/450 2026-03-23 13:17 by luoyongfeng
[考研] 070300,一志愿北航320求调剂 +3 Jerry0216 2026-03-22 5/250 2026-03-23 09:16 by 。。堂堂
[考研] 一志愿西安交通大学材料工程专业 282分求调剂 +11 枫桥ZL 2026-03-18 13/650 2026-03-22 20:26 by edmund7
[考研] 求调剂一志愿海大,0703化学学硕304分,有大创项目,四级已过 +6 幸运哩哩 2026-03-22 10/500 2026-03-22 20:10 by edmund7
[考研] 287求调剂 +8 晨昏线与星海 2026-03-19 9/450 2026-03-22 17:01 by i_cooler
[考研] 求调剂 +7 Auroracx 2026-03-22 7/350 2026-03-22 12:38 by 素颜倾城1988
[考研] 材料学硕301分求调剂 +7 Liyouyumairs 2026-03-21 7/350 2026-03-21 22:31 by peike
[考研] 广西大学材料导师推荐 +3 夏夏夏小正 2026-03-17 5/250 2026-03-21 22:20 by 金昊ML
[考研] 一志愿深大,0703化学,总分302,求调剂 +4 七月-七七 2026-03-21 4/200 2026-03-21 18:20 by 学员8dgXkO
[考研] 0703化学297求调剂 +3 Daisy☆ 2026-03-20 3/150 2026-03-21 17:45 by ColorlessPI
[考研] 279求调剂 +5 红衣隐官 2026-03-21 5/250 2026-03-21 14:59 by lature00
[考研] 265求调剂 +12 梁梁校校 2026-03-19 14/700 2026-03-21 13:38 by lature00
[考研] 301求调剂 +10 yy要上岸呀 2026-03-17 10/500 2026-03-21 03:14 by JourneyLucky
[考研] 295求调剂 +4 一志愿京区211 2026-03-18 6/300 2026-03-20 23:41 by JourneyLucky
[考研] 321求调剂 +9 何润采123 2026-03-18 11/550 2026-03-20 23:19 by JourneyLucky
[考研] 304求调剂 +7 司空. 2026-03-18 7/350 2026-03-20 23:08 by JourneyLucky
[考研] 材料与化工 322求调剂 +4 然11 2026-03-19 4/200 2026-03-20 22:12 by luoyongfeng
信息提示
请填处理意见