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

dyld: Library not loaded: libmkl_intel_lp64.dylib


Good afternoon everyone, hope you have a nice thanksgiving! Now I have a problem of Library loading, and the error message is:

dyld: Library not loaded: libmkl_intel_lp64.dylib

Before compile the code, in order to load the library, I put the following command line:

1. Type "touch .bash_profile" to create a new file if the file does not exist yet.

2. Type "open -e .bash_profile" to open it in TextEdit, and add the following command lines:

    source /opt/intel/composer_xe_2011_sp1/bin/ intel64

    alias ifort16="ifort -O3 -parallel -mkl -r16"

    alias ifort8="ifort -O3 -parallel -mkl -r8"

And later I used ifort16 to compile my code, with the error messages:

ifort16 -heap-arrays /Users/wangqian0410/Deskop/Research/code11.26.2013\ copy.f 
QIANs-MacBook-Pro:~ wangqian0410$ ./a.out
dyld: Library not loaded: libmkl_intel_lp64.dylib
  Referenced from: /Users/wangqian0410/./a.out
  Reason: image not found
Trace/BPT trap: 5

I have attached my code and it would be very nice of you if anyone can give my any idea on how to load the library and run the code. Thanks again!


0 Kudos
1 Reply

please look at this thread and and check if it will works from command line - t

0 Kudos