在使用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
安裝完以上發行版軟件包之后再次安裝增強功能就不會有問題啦。