解决Redhat Enterprise Linux 5下VBOXADDITIONS插件kernel modules编译失败的问题
rhel5虽然已经在虚拟机里安装了一段时间了。但是一直没有使用。今天因为Spark XML解析的问题,开了一下虚拟机,发现自己的客户机增强工具包还没有安装好,所以就动手安装了一下,首先是切换到root用户,然后执行./autorun.sh罗,结果提示gksu没有,在红帽的系统里,当然没有这个命令了,况且我本来就是用root执行这个脚本,也没有比较再去获得root权限了,删除之,再次执行,出现了下面的错误信息。提示不能编译内核模块。
[root@rhel VBOXADDITIONS_3.1.4_57640]# ./autorun.sh
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [失败]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
看log文件之前先看看我的系统版本信息
[leo@rhel ~]$ uname -a
Linux rhel 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
错误日志。提示不能找到内核Source,让指定KERN_DIR。在/usr/src下找了一下,确实没有。准备安装source文件。
[root@rhel VBOXADDITIONS_3.1.4_57640]# cat /var/log/vboxadd-install.log
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.。 停止。
安装kernel-devel和kernel-headers两个软件包,配置编译环境。
[root@rhel VBOXADDITIONS_3.1.4_57640]# yum install kernel-devel kernel-headers
安装成功后再次编译,编译已经OK了啊。
[root@rhel VBOXADDITIONS_3.1.4_57640]# ./autorun.sh
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules
Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system). This Guest Additions feature will be disabled.
Building the main Guest Additions module [确定]
Building the shared folder support module [确定]
Doing non-kernel setup of the Guest Additions [确定]
Starting the VirtualBox Guest Additions [确定]
Installing the Window System drivers
Installing X.Org 7.1 modules [确定]
You appear to be running an older version of the X Window system in your
guest. Seamless mode and dynamic resizing will not work!
Setting up the Window System to use the Guest Additions [确定]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services componen[确定]
安装完成之后,鼠标已经可以正常在主机和虚拟机之间自由滑动了,另外,系统剪贴板也已经正常共享了。写出来,方便大家吧。
再次感叹一下,服务器的启动和Ubuntu桌面版的启动速度比起来,差别还是太大了。
http://xieshaohu.spaces.live.com/Blog/cns!B8A0666CD7DF92E6!1062.entry
安装gcc时提示需要libgmp.so.3 找了好久才查到是需要安装gmp-4.1.4-10.e15.i386.rpm
分享到:
相关推荐
在本教程中,我们将详细探讨如何在Red Hat Enterprise Linux 5.5(RHEL 5.5)上使用VirtualBox虚拟机安装Oracle 11g Release 2(11.2 64位)Real Application Clusters(RAC)。RAC是一种高可用性解决方案,允许...
Oracle 11g RAC(Real Application Clusters)是一种高可用性和可伸缩性的数据库解决...通过遵循这些步骤并参考《oracle11g rac+redhat5.5集群配置2.0.doc》文档,可以为你的企业构建一个强大且高度可用的数据库环境。
### 在VirtualBox下安装RHEL Server 5.5 的详细步骤与知识点 #### 一、RHEL 5.5 概述 Red Hat Enterprise Linux (RHEL) 是由 Red Hat 公司发布的商业级 Linux 发行版之一,适用于服务器、工作站和个人电脑。RHEL ...
- Redhat:同样适用于服务器,版本包括Redhat 5.5, Redhat 6.0等。 - Ubuntu:适合移动嵌入式设备,常见版本有Ubuntu 10.04, Ubuntu 12.04等。 - Kali Linux:专门为渗透测试设计的操作系统。 #### 1.2 Linux的...
在4台虚拟机上实现的分布式greenplum数据库安装文档。虚拟机使用的是virtualBox,4台虚拟机使用的操作系统是redhat linux enterprise 5.5。
文档中提到的Linux RedHat属于Linux发行版的一种,它通过提供一套完整的软件包和集成管理工具,简化了Linux系统的安装和配置,特别适用于服务器环境。另外,由于Linux的开源特性,使得其社区活跃,能够获得大量的...