make: *** /lib/modules/3.10.0-1160.el7.x86_64/build: No such file or directory. Stop.
时间: 2024-04-24 11:23:08 浏览: 276
It appears that you are encountering an error message related to the "make" command. This error usually occurs when the "build" directory is missing in the specified path. To resolve this issue, you can try the following steps:
1. Make sure that the kernel development package is installed on your system. You can install it using the package manager specific to your Linux distribution. For example, on CentOS/RHEL, you can use the following command:
```
sudo yum install kernel-devel
```
2. If the kernel development package is already installed, try locating the "build" directory manually. It is usually located under "/lib/modules/<kernel_version>/build". Replace "<kernel_version>" with the actual version number of the kernel you are using.
3. If the "build" directory is missing, you might need to install the kernel headers package for your specific kernel version. You can search for the appropriate package using your package manager and install it.
Once you have resolved any missing dependencies or installed the necessary packages, try running the "make" command again. This should resolve the error and allow you to proceed with your build process.
阅读全文