Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make headers_install in ubuntu is throwing an error

In order to use some kernel headers like cpu.h in C coding, I want to install kernel headers to /usr/include/ directory. I am using "make headers_install" command for that. But system is throwing the following error. Does anyhow have idea of how to resolve it?

make headers_install

CHK     include/linux/version.h
make[2]: *** No rule to make target `/usr/src/linux-headers-3.0.0-17-generic/ubuntu/include/linux/aufs_type.h', needed by `/usr/src/linux-headers-3.0.0-17-generic/usr/include/linux/.install'.  Stop.
make[1]: *** [linux] Error 2
make: *** [headers_install] Error 2

My kernel version is: 3.0.0-17-generic Do I need to install anything more for operation "make headers_install" to be successful?

like image 202
bobby Avatar asked Dec 11 '25 01:12

bobby


1 Answers

You may find it simpler just to aptitude install linux-headers-3.0.0-17-generic.

like image 148
the paul Avatar answered Dec 12 '25 17:12

the paul