LD_LIBRARY_PATH &error while loading shared libraries: libmkl_core.so: cannot open shared object file: No such file or directory

Hi friends,
I am a fedora 35 user. I can not find the path of LD_LIBRARY_PATH to describe it in a bash script. when using the command “which which LD_LIBRARY_PATH”,
I am getting the following for many trials:

[user@fedora ~]$ which LD_LIBRARY_PATH
/usr/bin/which: no LD_LIBRARY_PATH in (/usr/local/bin:/usr/local/bin:/home/user/.local/bin:/home/user/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/user/sob/Multiwfn_3.8_dev_bin_Linux:/home/user/sob/Multiwfn_3.8_dev_bin_Linux)
wrote " echo $LD_LIBRARY_PATH" on the terminal : it gives the following
/usr/local/lib:/usr/local/lib:
However, when writing in my own bash script, I have encountered such an error:
error while loading shared libraries: libmkl_core.so: cannot open shared object file: No such file or directory


In my bash script, the path is defined as :
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
I did what you said. here is the result:
[user@fedora Masaüstü]$ ./runNBO6.sh
/usr/local/lib:/usr/local/lib:
/home/user/NBO/NBO6/gennbo6.exe: error while loading shared libraries: libmkl_core.so: cannot open shared object file: No such file or directory
[user@fedora Masaüstü]$

apart from this,
[user@fedora ~]$ which lib
/usr/bin/which: no lib in (/usr/local/bin:/usr/local/bin:/home/user/.local/bin:/home/user/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/user/sob/Multiwfn_3.8_dev_bin_Linux:/home/user/sob/Multiwfn_3.8_dev_bin_Linux)
[user@fedora ~]$ sudo which lib
[sudo] password for user:
which: no lib in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin)

What can i do ? could you explain what kind of steps i will follow?
thank you in advance
sedsil

This message means that the file libmkl_core.so can’t be found in the library /usr/local/bin or the usual places. Ths usual places are /lib64 and /usr/lib64.

This seems from the extension (.exe) to be a windows executable and if so then it would not be usable on a linux system, except possibly under wine. Are you certain that is not the source of the error?

Dear Jeff,
I run this exe file on the ubuntu and It is a program running under linux. There was no problem on ubuntu but I have met such a problem when running on fedora 35

sedsil

Jeff V via Ask Fedora <notifications@askfedora.discoursemail.com>, 22 Eyl 2022 Per, 05:59 tarihinde şunu yazdı:

Dear Villy Kruse,
Could you tell me what to do completely?
Thanks,
sedsil

Honestly, I have no idea.

I did this and it seems the needed file is not provided by any packages available within fedora or rpmfusion repos.

# dnf provides */libmkl_core.so*
Last metadata expiration check: 1:25:25 ago on Thu 22 Sep 2022 08:43:00 AM CDT.
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

As such it seems you need to find out where that file is provided and get it installed.
Your program (which you have not named) runs on ubuntu so you may be able to locate the source and possibly get that library file from there.

A quick search for ‘libmkl_core.so’ gives a lot of results which may or may not be helpful.