Rate This Document
Findability
Accuracy
Completeness
Readability

"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:
    1. Query the version of the running kernel.
      1
      uname -r
      
    2. Check whether the version of the kernel-devel software package matches the OS kernel version.

      If they do not match, run the following command to reinstall the kernel-devel software package:

      1
      yum install kernel-devel-$(uname -r)
      
  • If no kernel-devel software package is found, run the following command to install it:
    1
    yum install kernel-devel-$(uname -r)