- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've downloaded and installed the Intel Fortran comiler and the Math Kernel Library, and now I'm trying to follow the instructions in the MKL user's guide (/opt/intel/mkl/10.0.5.025/doc/userguide.pdf, page 7-2) to make Fortran 90 wrappers for LAPACK and BLAS. Here's the output I get when I type the following command:
/opt/intel/mkl/10.0.5.025/interfaces/blas95$ sudo make PLAT=lnx32e lib
mkdir -p obj
make -f makefile objects
make[1]: Entering directory `/opt/intel/mkl/10.0.5.025/interfaces/blas95'
ifort -c -o obj/mkl_blas_protos.o source/mkl_blas_protos.f90
make[1]: ifort: Command not found
make[1]: *** [obj/mkl_blas_protos.o] Error 127
make[1]: Leaving directory `/opt/intel/mkl/10.0.5.025/interfaces/blas95'
make: *** [libmkl_blas95.a] Error 2
I don't understand why it says that the command ifort is not found! Here's what I get when I type the following:
/opt/intel/mkl/10.0.5.025/interfaces/blas95$ ifort -V
Intel Fortran Compiler for applications running on Intel 64, Version 10.1 Build 20080801 Package ID: l_fc_p_10.1.018
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY
/opt/intel/mkl/10.0.5.025/interfaces/blas95$ which ifort
/opt/intel/fce/10.1.018/bin/ifort
And finally here's my PATH variable:
/opt/intel/mkl/10.0.5.025/interfaces/blas95$ printenv PATH
/opt/intel/idbe/10.1.018/bin:/opt/intel/fce/10.1.018/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
I'm running Ubuntu 8.04 64 bit, and would appreciate any help/explanation of why I can execute ifort from the shell prompt, but the makefile still can't find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your environment is not preserved under the sudo environment.
Try this command: sudo /opt/intel/fce/10.1.018/bin/ifortvars.sh;make PLAT=lnx32e lib
If that does not work, then try sudo su first, source the compiler's ifortvars.sh setup script, cd into the MKL blas95 directory and then launch the make.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your environment is not preserved under the sudo environment.
Try this command: sudo /opt/intel/fce/10.1.018/bin/ifortvars.sh;make PLAT=lnx32e lib
If that does not work, then try sudo su first, source the compiler's ifortvars.sh setup script, cd into the MKL blas95 directory and then launch the make.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your environment is not preserved under the sudo environment.
Try this command: sudo /opt/intel/fce/10.1.018/bin/ifortvars.sh;make PLAT=lnx32e lib
If that does not work, then try sudo su first, source the compiler's ifortvars.sh setup script, cd into the MKL blas95 directory and then launch the make.
Thanks for this. The first command didn't work, but with the sudo su approach everything worked fine and I managed to make the wrappers.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page