Question: how to check if a dependency is installed?
Answer: Long answer: If you want to install a certain program, first check if there is a SlackBuild for it on slackbuilds.org If there is, you'll probably find out there which dependencies exist. If it's not there, check what the author of the program says about needed libraries.