When you attempt to install a bunch of RPMs you should always do them in one swoop unless specifically instructed otherwise. That may (or may not) take care of various dependency problems. As an example of doing it the wrong way, search for various Samba upgrade threads in this forum.
Also, most package installations are done using -Uvh, not -ivh. Again, read the how-to/docs for details.
/Jens