CentOS /usr/local/lib system wide $LD_LIBRARY_PATH?
Solution 1:
You can edit the file /etc/ld.so.conf
and add your path /usr/local/lib
to it
or create a new file in /etc/ld.so.conf.d/
like /etc/ld.so.conf.d/usrlocal.conf
and put only the following line in it
/usr/local/lib
Then run ldconfig -v
as root, and you're done.
Solution 2:
You can add it in /etc/bashrc
, say, at the end.
export PATH=$PATH:/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib