When you run a program in Linux, you may experience error of:
error while loading shared libraries: xxxxxx.so.yy: cannot open shared object file: No such file or directory
There are couple solutions.
Set environment variable LD_LIBRARY_PATH pointing to the library path.
Edit /etc/ld.so.conf.d with the below content
include ld.so.conf.d/*.conf /usr/local/lib