problem:
make: *** /lib/modules/3.10.0-327.2.el7.x86_64/build: No such file or directory. Stop
Reason:
The kernel head files are missing for the current kernel.
How I solved it:
find current kernel: uname -r
yum install kernel-devel-$(uname -r)
you may not find it...just google that version of kernel-devel-... download the rpm file, and do
rpm -i kernel-devel-xxxx.rpm
The link maybe is not mate your kernel version.
-
cd to /lib/modules/3.10.0-327.2.el7.x86_64/ Delete the wrong link.
$ rm build`
-
Use
$ uname -r
to check the kernel
version -
Build new link mate your kerne
l
version.$ ln -s /usr/src/kernels/
3.10.0-327.2.el7.x86_64
/ build