asma
asma

Reputation: 131

Got error: No rule to make target while compiling linux Kernel

I am trying to compile my linux Kernel, after customizing my kernel configuration, I taped the command make to start compiling but an error occurs as follows:

asma@ubuntu:/usr/src/linux$ make 
make[1]: *** No rule to make target `/usr/src/linux-headers-3.5.0-23/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/asm/unistd_32.h'.  Stop.
make: *** [archheaders] Error 2

How can I fix this problem Please

Upvotes: 7

Views: 15278

Answers (1)

TheCodeArtist
TheCodeArtist

Reputation: 22487

To build the Linux kernel for Ubuntu,
one can obtain the proper patched sources by running the command,

sudo apt-get install linux-source

(on older versions of Ubuntu, the package name was linux-tree)

The sources are installed in /usr/src/linux-source-<version-num>/.

Upvotes: 7

Related Questions