What distro are you using? If it's Fedora or Redhat, install packages with yum or apt instead of trying to install individual rpms. YUM and APT/SYNAPTIC automatically resolve dependencies. You can get APT and it's GUI from fedora
apt repository under the extras directory. You will find documentation on how to use YUM and APT/SYNAPTIC on the web, just do a google search.