最佳答案
添加补充渠道/存储库:
原文链接:https://www.f2er.com/linux/440653.htmlyum-config-manager --enable rhel-6-server-supplementary
检查所需的包是否可用并安装:
yum list *-sun-devel
yum install java-1.6.0-sun-devel