Views:
16,055
Votes: 7
Tags:
environment-variables
matlab
paths
boost
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1066846
Title:
Set LD_LIBRARY_PATH correctly
ID:
/2018/08/19/Set-LD_LIBRARY_PATH-correctly
Created:
August 19, 2018
Upload:
December 22, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This Stack Exchange Q&A has various ways of setting LD_LIBRARY_PATH
the top voted answer suggests this is the best way:
sudo -H gedit /etc/ld.so.conf.d/randomLibs.conf
inside the file you are supposed to write the complete path to the directory that contains all the libraries that you wish to add to the system, for example
/home/linux/myLocalLibs
remember to add only the path to the dir, not the full path for the file, all the libs inside that path will be automatically indexed.
Save and run sudo ldconfig
to update the system with this libs.