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

dyld[10296]: Library not loaded: @rpath/libmkl_intel_lp64.1.dylib

user001
Novice
1,182 Views

I downloaded the Intel oneAPI Basic Toolkit and the HPC Toolkit on my Mac (Apple M2), and set the environment variables. When I try to run the program form my tutor(his also ueses intel oneAPI on Mac), I get the following error: 

 

 

dyld[10296]: Library not loaded: @rpath/libmkl_intel_lp64.1.dylib.

 

 

At first I thought there was a problem connecting the dynamic library, but when I go to the lib directory, I find that there doesn't seem to be a file named libmkl_intel_lp64.1.dylib? I tried to install repeatedly and it didn't work either.

 

 

cd /opt/intel/oneapi/mkl/2023.0.0/lib/

 

 

WechatIMG51.png

 

The dynamic libraries that the program needs to link are as follows:

@rpath/libmkl_intel_lp64.1.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libmkl_intel_thread.1.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libmkl_core.1.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libiomp5.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)

I wonder if I really don't have libmkl_intel_lp64.1.dylib in my mkl library, or is the project my tutor gave me too old and needs to be updated?(the project works fine on my mentor's mac, but I don't know what version of his intel oneapi is) 

 

Labels (1)
0 Kudos
7 Replies
ShanmukhS_Intel
Moderator
1,131 Views

Hi,


Thanks for posting in Intel Communities.


We are working on your issue. We will get back to you soon with an update.


Best Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
1,098 Views

Hi,


Thanks for posting in Intel Communities.


We are working on your issue internally. We will get back to you soon with an update. Regrets for the delay in response.


Best Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
1,075 Views

Hi,


Could you please get back to us with a sample reproducer? as it help us reproduce the issue at our end and help you further?


Besides this, you could try creating a symbolic link as below and get back to us if the issue persists.


cd /opt/intel/oneapi/mkl/2023.0.0/lib/

ln -s libmkl_intel_lp64.2.dylib libmkl_intel_lp64.1.dylib


Best Regards,

Shanmukh.SS


user001
Novice
476 Views

Your method worked very well, thank you very much! ! 0.0

0 Kudos
ShanmukhS_Intel
Moderator
1,044 Views

Hi,

 

A gentle reminder:

Has the information provided helped? Could you please get back to us with the earlier-mentioned details? It helps us triage the issue and help you further.

 

Best Regards,

Shanmukh.SS

 

0 Kudos
ShanmukhS_Intel
Moderator
1,000 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Best Regards,

Shanmukh.SS


0 Kudos
user001
Novice
894 Views

I'm using version 2021 of inter oneAPI, which has the mkl library containing libmkl_intel_lp64.1.dylib, but not version 2023.0.0, and I've used the above method without success. Since I didn't write the code, I only have the executable, so it looks like I have to use the old version of inter oneAPI.

 

But,the new version of the library should not contain all the content of the old library?

0 Kudos
Reply