The mpicc command (actually it is a link to opal_wrapper) doesn't reside in a standard directory and for this reason it's not included in your PATH. You have to add the directory to your PATH, e.g.
Code:
export PATH=/usr/lib64/openmpi/bin:$PATH
or give the full path on the command line:
Code:
/usr/lib64/openmpi/bin/mpicc -o hello hello.c
Hope this helps.