Posts tagged R1soft Kernel header error

R1soft Kernel header error

While installing kernel package using the command 

/usr/bin/r1soft-setup --get-module

if you came across the  below errors :  

Unable to find a valid source directory.
Please install the kernel headers for 
your operating system.

Then don't panic  this can simply be resolved
 by running the below commands 
root@server[#] yum install kernel-devel kernel-headers 

If you are running PAE kernel 

root@server[#] yum install kernel-PAE-devel  

If you are running xen kernels 

root@server[#]yum install kernel-xen-devel  
If you are running one of the beta kernels then,
 add --enablerepo=cloudlinux-updates-testing
 at the end of yum command, like this: 

yum install kernel-devel --enablerepo=cloudlinux-updates-testing 

Now, just re-execute the command : 
/usr/bin/r1soft-setup --get-module

That’s all.