Error while loading shared libraries [How to Solve]

error while loading shared libraries: libpango_image.so: cannot open shared object file: No such file or directory

#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
#sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"
#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

/usr/local/lib
#sudo sh -c ldconfig

In this case, the shared library file has been installed under the/usr/local/lib directory by default. Before executing the ldconfig command, add the new shared library directory to the shared library configuration file/etc/ld.so.conf.

Read More: