get package dependencies using apt-get
If your are compiling software from source under linux you may be able to obtain the required packages using apt-get, first locate the packaged software using apt-cache:
sudo apt-cache search [software]
then look for the appropriate package name and then use apt-get to install the required dev packages, libs etc:
sudo apt-get build-dep [package]