Where does ripconfig look for the kernel sources?
By default, ripconfig looks for the symbolic link /lib/modules/(kernelversion)/build If this link exists and points to a valid directory, then ripconfig will use this directory as the kernel sources’ location. If the link does not exist, ripconfig will try to use /usr/src/linux or /usr/local/src/linux. Please note that if your kernel sources are in /usr/local/src/linux, but you also have a /usr/src/linux link pointing to an invalid or empty directory, then ripconfig will try to use /usr/src/linux and it will fail. It is VERY important that the kernel sources’ version match the kernel version that you are currently running. If it isn’t the case, then ripconfig will report and error.