Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

cannot find -lblas

russel_nurjew
Beginner
1,422 Views
I'am using Ubuntu 9.04 i386. I installed Intel Fortran Compiler. I know that this issue has been disussed yet but all workarounds didn't help me. When ifort-compiling my program I always get one of the following messages:
ld: cannot find -lblas
ld: cannot find -llapack
Going to
/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95/ and doing a:
sudo make PLAT=lnx32 lib I get:
mkdir -p obj
make -f makefile objects
make[1]: Betrete Verzeichnis '/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95'
ifort -module ../../lib/32 -c -o obj/mkl_blas_protos.o source/mkl_blas_protos.f90
make[1]: ifort: Kommando nicht gefunden
make[1]: *** [obj/mkl_blas_protos.o] Fehler 127
make[1]: Verlasse Verzeichnis '/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95'
make: *** [libmkl_blas95.a] Fehler 2

What could be the problem? Please help! Russel Nurjew






0 Kudos
1 Reply
Ron_Green
Moderator
1,422 Views
Quoting - russel_nurjew
I'am using Ubuntu 9.04 i386. I installed Intel Fortran Compiler. I know that this issue has been disussed yet but all workarounds didn't help me. When ifort-compiling my program I always get one of the following messages:
ld: cannot find -lblas
ld: cannot find -llapack
Going to
/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95/ and doing a:
sudo make PLAT=lnx32 lib I get:
mkdir -p obj
make -f makefile objects
make[1]: Betrete Verzeichnis '/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95'
ifort -module ../../lib/32 -c -o obj/mkl_blas_protos.o source/mkl_blas_protos.f90
make[1]: ifort: Kommando nicht gefunden
make[1]: *** [obj/mkl_blas_protos.o] Fehler 127
make[1]: Verlasse Verzeichnis '/opt/intel/Compiler/11.0/083/mkl/interfaces/blas95'
make: *** [libmkl_blas95.a] Fehler 2

What could be the problem? Please help! Russel Nurjew







You'll need to change your makefile to point BLAS and LAPACK to the MKL libraries. The MKL libraries have those libraries, but the library names are different. I would recommend taking this question to the MKL forum as they may have to help you build the proper module interfaces.

the MKL forum is here: http://software.intel.com/en-us/forums/intel-math-kernel-library/
0 Kudos
Reply