Saturday, March 5, 2011

Tip 12: asm or linux include files not found

On older Linux systems, you may have some errors about include files not found in the asm/ or linux/
directory when you try to compile some programs. This means that the kernel source code was not installed.
Bot asm/ and linux/ directories are links to the kernel source code.
To install them on your system, you need to get the kernel source code. Then you need to link the directories:
ln -s /usr/src/linux/include/asm /usr/include/asm
ln -s /usr/src/linux/include/linux /usr/include/linux
This will link the 2 directories in the include tree allowing applications to find them.

No comments:

Post a Comment