On both my laptop and desktop, I found that the /usr/src/linux sym-link that was supposed to be written when kernel-source was installed is missing. I found this by issuing the command "cd /usr/src/linux" and getting the response that there was no file or directory named "linux". Strange! That means that the kernel is not linked to the proper kernel-source.
This means that you cannot do your own compiling (at least me).
Check it by doing:
Code:
jim@am2:~> cd /usr/src
jim@am2:/usr/src> ls -l
total 12
drwxr-xr-x 20 root root 4096 2007-10-04 16:30 linux-2.6.22.5-31
drwxr-xr-x**3 root root 4096 2007-09-24 14:11 linux-2.6.22.5-31-obj
drwxr-xr-x**7 root root 4096 2007-10-04 16:43 packages
jim@am2:/usr/src>
Note that "linux -> /usr/src/linux-2.6.22.5-31" which is the representation of a sym-link is not present.
Let's fix it!
In a terminal as root:
Code:
jim@am2:/usr/src> cd /
jim@am2:/> su
Password:
am2:/ # ln -s /usr/src/linux-2.6.22.5-31 /usr/src/linux
am2:/ #
Now let's check it:
Code:
am2:/ # cd /usr/src
am2:/usr/src # ls -l
total 12
lrwxrwxrwx**1 root root** 26 2007-10-06 07:03 linux -> /usr/src/linux-2.6.22.5-31
drwxr-xr-x 20 root root 4096 2007-10-04 16:30 linux-2.6.22.5-31
drwxr-xr-x**3 root root 4096 2007-09-24 14:11 linux-2.6.22.5-31-obj
drwxr-xr-x**7 root root 4096 2007-10-04 16:43 packages
am2:/usr/src #**
I now have the sym-link " linux -> /usr/src/linux-2.6.22.5-31" which is necessary for compiling as the kernel is linked to the proper kernel-source.
Happy compiling...Ah, workarounds...