Custom shared libraries

Sometimes some program can require old or special shared libraries, so one solution is to make a directory to /usr/local/lib

An example:

sudo mkdir -p /usr/local/lib/custom

… and the libraries must copy or link to that directory

An example about copying:

sudo cp *.so /usr/local/lib/custom

There must be a custom config file for those libraries, like

sudo nano /etc/ld.so.conf.d/custom.conf

…. the contents

/usr/local/lib/custom

…. save, quit and run (Ctrl o and Ctrl x)

sudo ldconfig

… or

sudo ldconfig -v