How to check if a library is installed?
To do this in a distro-independent* fashion you can use ldconfig with grep, like this: ldconfig -p | grep libjpeg If libjpeg is not installed, there will be no output. If it is installed, you will get a line for each version available. Replace libjpeg by any library you want, and you have a generic, … Read more