24小时热门版块排行榜    

Znn3bq.jpeg
查看: 482  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂推荐 +7 小聂爱学习 2026-04-14 7/350 2026-04-16 00:19 by cuisz
[考研] 一志愿沪9,生物学326求调剂 +7 刘墨墨 2026-04-15 7/350 2026-04-15 18:51 by 浮云166
[考研] 366求调剂 +11 不知名的小卅 2026-04-11 11/550 2026-04-14 15:50 by zs92450
[考研] 279学硕食品专业求调剂院校 20+6 孤独的狼爱吃羊 2026-04-12 28/1400 2026-04-14 15:44 by zs92450
[考研] 一志愿哈工大 085600 277 12材科基求调剂 5+5 chenny174 2026-04-10 37/1850 2026-04-14 07:39 by Abskk
[考研] 考研英一数一338分 +9 长江大学东校区 2026-04-13 10/500 2026-04-14 00:41 by 王珺璞
[考研] 一志愿211 0703化学 346分求调剂 +26 土豆er? 2026-04-09 29/1450 2026-04-13 15:15 by 独醉梦孤城
[考研] 材料考研调剂 +29 云木达达 2026-04-11 31/1550 2026-04-13 13:32 by lyh鲁老师
[考研] 0854调剂 +10 长弓傲 2026-04-11 11/550 2026-04-13 10:38 by wp06
[考研] 考研二轮调剂 +10 故人?? 2026-04-09 10/500 2026-04-13 09:55 by szhize
[考研] 314求调剂 +24 wakeluofu 2026-04-09 25/1250 2026-04-13 08:58 by lhj2009
[考研] 电气专硕320求调剂 +6 小麻子111 2026-04-10 6/300 2026-04-12 10:54 by lemon6009
[考研] 331求调剂 +5 王国帅 2026-04-11 5/250 2026-04-11 22:56 by 溪涧流水
[考研] 281求调剂 +11 觉得好的吧 2026-04-10 11/550 2026-04-11 09:35 by 逆水乘风
[考研] 263能源动力专硕求调剂 +3 加大号饭盒袋 2026-04-10 3/150 2026-04-10 22:23 by 286640313
[考研] 调剂 +19 小张ZA 2026-04-10 20/1000 2026-04-10 22:08 by 猪会飞
[考研] 吉大计算机技术331分,英语六级,求调剂 +3 峰峰021116 2026-04-09 3/150 2026-04-10 20:01 by chemisry
[考研] 计算机类求调剂,22408-274分 +7 上岸de小虫 2026-04-09 8/400 2026-04-10 19:56 by fxue1114
[考研] 一志愿矿大,材料工程专硕314分,0856可调都可以 +15 无懈可击的巨人 2026-04-09 15/750 2026-04-10 18:10 by hmn_wj
[考研] 材料专硕初试分332一志愿西北工业大学, +12 故人?? 2026-04-09 12/600 2026-04-09 18:34 by Ccclqqq
信息提示
请填处理意见