Centos is installed on the VirtualBox virtual machine. an error is reported when the enhancement function is installed. the error is & ldquo; centostheheadersforthecurrentrunningkernelwerenotfound ...... & rdquo; the error message is that the system cannot find kernelheaders and the method is found online. The original solution is: 1) yuminstallgcc &
Centos is installed on the VirtualBox virtual machine. an error is reported when the enhancement function is installed. the error is "centos the headers for the current running kernel were not found ...... ", the error message is that the system cannot find the kernel headers and the method is found online. The original solution is:
1) yum install gcc-y
2) yum install gcc kernel-devel kernel-headers-y
3) restart the system
However, after performing the preceding steps and restarting the system, the enhancement function cannot be installed. After "yum install kernel *" is used and the system is restarted, the enhancement function can be installed.
Therefore, the solution can be changed:
1) yum install gcc-y
2) yum install kernel */yum install kernel-devel *
3) restart the system