Linux
Last updated
Was this helpful?
Last updated
Was this helpful?
Create a new file in /etc/ld.so.conf.d/
called .conf
Edit the file and add a line per directory of shared libraries (*.so files), it will look something like:
Reload the list of system-wide library paths:
Edit /etc/ld.so.conf
Add a line per directory of shared libraries (*.so files) to the bottom of the file, it will look something like:
Reload the list of system-wide library paths:
If you run your new application it should now work fine without you having to set any LD_LIBRARY_PATH environment variables.
If you still have problems you can obtain a list of the libraries that are on the system path by re-running the ldconfig
command in verbose mode:
Create alias to commands inside .bashrc or .zshrc
Example