VBOX centos安装vbox增强工具失败 解决方案
简述问题:
centos系统在更新内核后,增强工具失效,重新安装的过程中输出以下错误
Building the main Guest Additions 7.0.12 module for kernel 3.10.0-1160.102.1.el7.x86_64. Error building the module. Build output follows. make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/3.10.0-1160.102.1.el7.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j6 modules arch/x86/Makefile:169: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.. Stop. make: *** [vboxguest] Error 2 kernel modules and services were not reloaded
解决方案:
1、查看增强工具包(.iso)是否与vbox版本对应,如果版本不对应请下载对应版本(链接)
2、gcc版本过低,升级gcc即可完成正常安装