I want to change LD_LIBRARY_PATH variable globally, to use some strange third-party SDK, which places its shared libraries to custom directories. So, I added such script to /etc/profile.d:
LD_LIBRARY_PATH=/usr/local/ebus_sdk/lib/genicam/bin/Linux64_x64:/usr/local/ebus_sdk/lib/qt/lib:/usr/local/ebus_sdk/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
After reboot, I type this in the command line:
alex@alex-64:~$ echo $LD_LIBRARY_PATH .
So, this way doesn't work. Is there any other way to add these directories to the library search path?
Most linux distros would have you add a file to the /etc/ld.so.conf.d directory which contains the path to search for the libraries. This is a convenient way for installers like rpm and dpkg to install and uninstall a package's system changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With