Linux Error

本文记录了在 CentOS 5.6 系统上安装 VirtualBox Guest Additions 的过程及遇到的问题。由于未能自动识别内核源码路径导致安装失败,通过手动指定内核源码目录并重新安装 gcckernel 和 kernel-devel 包解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.6 (Final)

[root@localhost ~]# sh ./VBoxLinuxAdditions.run

Building the main Guest Additions module                   [失败]

[root@localhost ~]# cat /var/log/vboxadd-install.log
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
=====================

[root@localhost ~]# yum install gcc kernel kernel-devel

[root@localhost ~]# reboot

[root@localhost ~]# /etc/init.d/vboxadd setup

==================

参考:http://www.cnblogs.com/MoShin/archive/2012/04/25/2469156.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值