在centos 6.5 在virtual box 上 安装增强版工具

centos 6.5  在virtual box 上  安装增强版工具: 
出现:
centos unable to find the source of your current linux kernel
Is it too late to contribute to this thread? I found that gcc and kernel-devel was not included with the generic desktop install so also needed to do
 
使用:
yum install -y gcc kernel-devel

如果还是不行的话,使用命令
    yum update 
进行软件包的更新 ,之后重启进行操作即可
after running the updates and rebooting. 安装完成之后使用reboot命令 重启即可。

安装好的CentOS会自带OpenJdk,用命令 java -version ,会有下面的信息:

java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

最好还是先卸载掉openjdk,在安装sun公司的jdk.

先查看 rpm -qa | grep java

显示如下信息:

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5

卸载:

rpm -e --nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5

 
原文地址:https://www.cnblogs.com/joqk/p/3966958.html