While attempting to manually compile AutoProtect on a RHEL or CentOS client, a message about missing kernel modules is encountered. Kernel module packages for the Linux client have already been installed.
Mon Jan 1 12:12:12 EDT 2018: starting to build kernel modules of SEP for Linux
Kernel release not specified. Build kernel modules for current kernel version [kernel version]
/lib/modules//build does not exist
Mon Jan 1 12:12:12 EDT 2018: Build failed
The correct kernel modules for the currently loaded Linux kernel are not installed.
"uname -r
" from the terminal and note your current kernel version."yum info kernel-devel
" and note the release information provided.
yum install kernel-devel-$(uname -r)
" command can be used for this.