To add new library path in ubuntu 10.10

1287

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