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.
Solution 1
Set environment variable LD_LIBRARY_PATH pointing to the library path.
Example
export LD_LIBRARY_PATH=/usr/local/lib
Solution 2
Edit /etc/ld.so.conf.d with the below content
include ld.so.conf.d/*.conf /usr/local/lib