一个关于给virtualbox安装增强功能的问题

45 views
Skip to first unread message

贾威

unread,
Aug 6, 2010, 3:49:00 AM8/6/10
to 西邮Linux兴趣小组
大家好:
           最近我在virtualbox上安装了redhat,一切正常,但是当我安装virtualbox增强功能的时候( 我敲的命令是 sudo  bash  VBoxLinuxAdditions-x86.run ), 结果显示了这样的错误,错误如下:

Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-164e15.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

据我分析,是让我安装kernel的头文件和build,可是我就不知道如何安装,对这个问题也是第一次碰到,那位学长知道如何解决,请发给我,谢谢。

--
love linux, i'll study it all my life, for  i'm that fond of it.

GKermit

unread,
Aug 6, 2010, 3:58:34 AM8/6/10
to 贾威, 西邮Linux兴趣小组
On Fri, 2010-08-06 at 15:49 +0800, 贾威 wrote:
> 大家好:
> 最近我在virtualbox上安装了redhat,一切正常,但是当我安装

> virtualbox增强功能的时候( 我敲的命令是 sudo bash
> VBoxLinuxAdditions-x86.run ), 结果显示了这样的错误,错误如下:
>
> Please install the build and header files for your current Linux
> kernel.
> The current kernel version is 2.6.18-164e15.
> Problems were found which would prevent the Guest Additions from
> installing.
> Please correct these problems and try again.
>
> 据我分析,是让我安装kernel的头文件和build,可是我就不知道如何安装,对这
> 个问题也是第一次碰到,那位学长知道如何解决,请发给我,谢谢。

在Linux虚拟机中安装这个增强功能,需要用于编译内核模块的内核头文件。 你在
Red Hat的源里找到相应内核版本的kernel-header安装就可以了。 我很少用
Redhat,不知道这个包怎么装,你上网搜搜应该会找到。

Regards
Kermit


刘周平

unread,
Aug 6, 2010, 4:46:40 AM8/6/10
to GKermit, 贾威, 西邮Linux兴趣小组
在 2010年8月6日 下午2:58,GKermit <kermi...@gmail.com>写道:
On Fri, 2010-08-06 at 15:49 +0800, 贾威 wrote:
> 大家好:
>            最近我在virtualbox上安装了redhat,一切正常,但是当我安装
> virtualbox增强功能的时候( 我敲的命令是 sudo  bash
> VBoxLinuxAdditions-x86.run ), 结果显示了这样的错误,错误如下:
>
> Please install the build and header files for your current Linux
> kernel.
> The current kernel version is 2.6.18-164e15.
> Problems were found which would prevent the Guest Additions from
> installing.
> Please correct these problems and try again.
>
> 据我分析,是让我安装kernel的头文件和build,可是我就不知道如何安装,对这
> 个问题也是第一次碰到,那位学长知道如何解决,请发给我,谢谢。
你可能在安装redhat时没有定制你要安装的软件包
这个问题是因为你当前系统没有内核的编译环境,增强功能本身是一个内核模块,如果你的redhat本地源已经搭建起来,那么你把开发库和开发工具安装上就可以了。
具体做法: 应用程序->添加/删除程序  进入软件包管理者   然后在 “开发”选项中将"开发库"和"开发工具"选上 应该就没问题了

如果没有搭建yum源,就上网搜吧...

在Linux虚拟机中安装这个增强功能,需要用于编译内核模块的内核头文件。 你在
Red Hat的源里找到相应内核版本的kernel-header安装就可以了。 我很少用
Redhat,不知道这个包怎么装,你上网搜搜应该会找到。

Regards
Kermit


--
要退订此论坛请发邮件至 xiyoulinux-...@googlegroups.com
更多选项: http://groups.google.com/group/xiyoulinux?hl=zh-CN
提问前建议您阅读:http://www.xiyoulinux.cn/blog/?p=64
也请查看我们的FAQ:http://xiyoulinux.cn/wiki/index.php?title=FAQ

贾威

unread,
Aug 6, 2010, 7:36:12 AM8/6/10
to 西邮Linux兴趣小组
最后好了,我的经验来自平哥,就是他说的,应用程序->添加/
删除程序  进入软件包管理者 ->然后选择kernel-header,
最后重启,安装。就搞定。     最后谢谢大家的帮助,再见,哈哈。


在 2010年8月6日 下午7:35,贾威 <harry...@gmail.com>写道:
最后好了,我的经验来自平哥,就是他说的,应用程序->添加/删除程序  进入软件包管理者 ->然后选择kernel-header,
最后重启,安装。就搞定。     最后谢谢大家的帮助,再见,哈哈。
在 2010年8月6日 下午7:28,贾威 <harry...@gmail.com>写道:

是的  正在研究他们   哈哈    可是  我在以安装
内面明明看到我的kernel-header以安装了,为啥还不行呢?  真奇怪,哈哈!!!
在 2010年8月6日 下午7:15,刘周平 <sanwei...@gmail.com>写道:



在 2010年8月6日 下午6:09,贾威 <harry...@gmail.com>写道:
安装那个开发库和开发工具不管用,我在看看吧。谢谢了。
里面有更多的选择
--
love linux, i'll study it all my life, for  i'm that fond of it.



--
love linux, i'll study it all my life, for  i'm that fond of it.



--
love linux, i'll study it all my life, for  i'm that fond of it.
Reply all
Reply to author
Forward
0 new messages