要安装GCC和kernel-devel
插入rh的光碟 先安装gcc-4.1.1-52.el5.i386.rpm, 再安装kernel-xen-devel-2.6.18-8.el5.i686.rpm,kernel-devel-2.6.18-8.el5.i686.rpm
gcc的安装过程
现在我们开始安装GCC依赖的*rpm程序:
1、准备好如下*.rpm文件(/media/RHEL*/Server/目录下会有),另外这个网址
http://riksun.riken.go.jp/pub/pub/Linux/slc/slc52/i386/yum/testing/
有很多*.rpm程序文件,非常丰富,请注意查看版本:
kernel-headers-2.6.18-164.el5.i386.rpm
compat-glibc-headers-2.3.4-2.26.i386.rpm
compat-glibc-2.3.4-2.26.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
compat-libf2c-34-3.4.6-4.i386.rpm
compat-libgcc-296-2.96-138.i386.rpm
cpp-4.1.2-46.el5.i386.rpm
glibc-headers-2.5-42.i386.rpm
glibc-devel-2.5-42.i386.rpm
libgomp-4.4.0-6.el5.i386.rpm
libstdc++-devel-4.1.2-46.el5.i386.rpm
gcc-4.1.2-46.el5.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
2、然后必须按照顺序依次执行:
有些系统可能已经默认安装 ,没关系,已经安装的就直接跳过
(可以到/RHEL*/Server/找到文件直接双击安装,版本可能不同)
rpm -ivh kernel-headers-2.6.18-164.el5.i386.rpm
rpm -ivh compat-glibc-headers-2.3.4-2.26.i386.rpm
rpm -ivh compat-glibc-2.3.4-2.26.i386.rpm
rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
rpm -ivh compat-libf2c-34-3.4.6-4.i386.rpm
rpm -ivh compat-libgcc-296-2.96-138.i386.rpm
rpm -ivh cpp-4.1.2-46.el5.i386.rpm
rpm -ivh glibc-headers-2.5-42.i386.rpm
rpm -ivh glibc-devel-2.5-42.i386.rpm
rpm -ivh libgomp-4.4.0-6.el5.i386.rpm
rpm -ivh libstdc++-devel-4.1.2-46.el5.i386.rpm
rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
rpm -ivh gcc-4.1.2-46.el5.i386.rpm
最后别忘记重启一下计算机~
然后安装VBOX增强包
1。 把安装包从虚拟光盘拷贝到你的目录下,
比如/HOME/USER/vbox_indition
2。 cd /home/user/vbox_indition 进入拷贝光盘的文件夹
3。输入sh VBoxLinuxAdditions-x86.run
之后reboot
OK 可以用增强功能了