vim /etc/ld.so.conf
#add these lines below
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
#save and quit
:wq
ldconfig -v # Make it work
vim /etc/ld.so.conf
#add these lines below
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
#save and quit
:wq
ldconfig -v # Make it work