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