centos6.2

wget   http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo然后使用yum clean allyum makecache最后才用yum install openssl-devel

若是centos5则用下面链接

网易源http://mirrors.163.com/.help/CentOS5-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo搜狐源wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo -O /etc/yum.repos.d/CentOS-Base.repo