在使用VirtualBox为CentOS安装增强功能时,输出是:
文本:
Verifying archive integrity... All good. Uncompressing VirtualBox 5.2.18 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. 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-862.el7.x86_64 VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. 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-862.el7.x86_64 Press Return to close this window...
所以,为了给CentOS安装增强功能,我们还需要安装 gcc make perl kernel-devel kernel-devel-3.10.0-862.el7.x86_64。
使用yum命令进行安装:
yum install gcc make perl kernel-devel kernel-devel-3.10.0-862.el7.x86_64
安装完以上发行版软件包之后再次安装增强功能就不会有问题啦。