"cannot create regular file" Displayed When KAE Is Installed Through Source Code Compilation
Symptom
When KAE is installed through source code compilation and the make command is executed, an error message "cannot create regular file '...':No such file or directory" is displayed, indicating that the directory to which the build soft link points does not exist.

Key Process and Cause Analysis
The kernel-devel software package is not installed in the OS or the installed kernel-devel does not match the kernel version of the OS. As a result, the kernel header file directory to which the build soft link points does not exist.
Conclusion and Solution
Check whether kernel-devel is installed in the OS or whether the installed kernel-devel software package matches the OS kernel version.
Query the version of the installed kernel-devel software package.
1 | rpm -qa | grep kernel-devel |
- If the installed kernel-devel software package is queried, perform the following steps:
- If no kernel-devel software package is found, run the following command to install it:
1yum install kernel-devel-$(uname -r)
Parent topic: Software