gpt4 book ai didi

virtualbox - RHEL : This system is currently not set up to build kernel modules

转载 作者:行者123 更新时间:2023-12-03 17:12:16 25 4
gpt4 key购买 nike

我正在尝试在 RHEL 7 VM 上安装 virtualbox5.2 当我尝试重建内核模块时,我收到以下错误:

[root@myserver~]# /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-693.11.1.el7.x86_64

我尝试安装 kernet-devel 并收到成功消息
Installed:
kernel-devel.x86_64 0:3.10.0-693.21.1.el7

Complete!

但是设置仍然失败。

知道这里缺少什么吗?

最佳答案

sudo yum install -y "kernel-devel-$(uname -r)"替补dnf在 Fedora 上。我不需要重新启动,但是 ymmv.
2020年编辑:
Centos/RHEL 8 现在也使用 dnf而不是 yum .我没有机会在那些发行版上测试这个,所以同样的 YMMV 免责声明仍然适用。

关于virtualbox - RHEL : This system is currently not set up to build kernel modules,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49369065/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com