First of all, why are you trying to compile things? Is there a real reason for this, or do you just not know about RPMs/YUM/Packages in general.
If you want some info on how to install RPMs (RPM Packages), then look at my site:
The Ultimate Linux Newbie Guide, Chapter 9: Installing Software (RPM section)
If you are really compiling stuff because you need to then the problem you are having is down to dependencies.
Basically - configure is saying, 'Hey, you don't have program X installed, I can't install program Y until you have program X installed too'.
This means you need to download program X, compile it first and then go back to program Y.
See my tutorial at www.linuxnewbieguide.org/compiling.php
for more information on compiling from source.
Hope this helps,