bobby
bobby

Reputation: 305

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?

Upvotes: 3

Views: 1633

Answers (1)

the paul
the paul

Reputation: 9161

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

Upvotes: 1

Related Questions