how to install 'version.h' in ubuntu ?

Solution 1:

You have to install the kernel headers package for your system.

sudo apt-get install linux-headers-$(uname -r)

or first get your kernel version by typing:

uname -r 

In the code below, replace $version with your kernel version

sudo apt-get install linux-headers-$version