Fatal error: linux/errno.h: No such file or directory workaround

Fatal error: linux/errno.h: No such file or directory

Generally the problem is that kernel-headers (kernel header files) are not installed

Workaround (here is for CentOS7)

download

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/kernel-headers-3.10.0-1160.el7.x86_64.rpm

Install

rpm -ivh kernel-headers-3.10.0-1160.el7.x86_64.rpm

Find other versions here

https://pkgs.org/download/kernel-headers

Choose one that matches your version and download it with wget + link

Then install rpm -ivh + file package name generally starts with kenrnel-headers and ends with rpm

 

Guess you like

Origin blog.csdn.net/pupupu777/article/details/120857517