rpm -qa | grep coin
but it does not show anything. "
The rpm data base is where rpm stores its information about the packages that you have installed. When you compile a program to install it no information is recorded in the rpm data base. So rpm queries will find no information about packages compiled from source. In order to see if you have an executable program called coin try:
If you want to record programs compiled from source in the rpm data base then use checkinstall. You use this command sequence to do the compile.
This results in a rpm package which you install using the rpm command. checkinstall may be available on your Red Hat distribution CD. If not you can download it from here: