To add new library path, create new file in /etc/ld.so.conf.d folder and open it in your favorite editor
$ sudo gedit /etc/ld.so.conf.d/newlib.conf
Add the path to file and save it
/path/to/new/lib
Run ‘ldconfig’ to update the necessary links and cache
$ sudo ldconfig