🔍 See Original Answer on Ask Ubuntu 🔗
Set LD_LIBRARY_PATH correctly
August 19, 2018
November 24, 2022
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
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.