24小时热门版块排行榜    

查看: 468  |  回复: 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 的主题更新
信息提示
请填处理意见