are you behind a router on a LAN ?
if so you have to configure yum to use it
as to pinging google
it is very easy to use the wrong command
please post the command you are using
CentOS BY DEFAULT DOSE NOT USE "sudo"
You have to manually set it up if you understand the security RISKS and except them
Cent uses "su" and "su -" BY DEFAULT
also it is always a good idea to SEARCH the yum repos for the CORRECT NAME
Code:
su -
###### type in the root password when asked for #######
yum search hdf5
#### then from the list ####
yum install hdf5-devel hdf5
but do you also need the "openmpi" one ?