Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

cannot manage to link imkl library in linux

iturkyilmaz
Beginner
303 Views
I have downloaded intel fortran compiler and mkl library for linux. I have installed them. I can use ifort but I cannot link my file to imkl library.

airmax:~> ifort imkltest.f90 -L$MHLPATH -lmkl_lapack95 -lmkl_lapack -lmkl_em64t -lguide

It gives following error.

fortcom: Error: imltest.f90, line 10: Error in opening the Library module file
....


what is wrong with this compiler and library. I have also added following lines to my .bashrc file


export MKLPATH="/opt/intel/mkl/8.0.1"
export INCLUDE="/opt/intel/mkl/8.0.1/include"
export LD_LIBRARY_PATH=/opt/intel/mkl/8.0.1/lib/em64t:$LD_LIBRARY_PATH



I have also attacthed my imkltest.f90
0 Kudos
1 Reply
f_oliveira
Beginner
303 Views
I was having a similar problem and in my case it worked when I deactivated the SELinux. I also changed all the permissions to be able to write in the mkl directories. Hoppefully this might help you.
0 Kudos
Reply