just how are you doing all of the above ???
the recommended way on all red hat based OS's is to use "yum"
yum install cups-devel
but on RHEL you must have a paid for license and you MUST have regestered your install
( there is a handy desktop icon ) to buy a license and register it
spend the $299 US for a one year tech support subscription
however during the install cups should have been installed and your hp printer should have been seen and the hplip set should have been installed
If you are not going to bay for rhel then
install CentOS or ScientificLinux