LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where is my kernel source directory? (https://www.linuxquestions.org/questions/linux-newbie-8/where-is-my-kernel-source-directory-148107/)

Veivann 02-19-2004 02:00 PM

where is my kernel source directory?
 
Hi! I'm trying to install a smartlink driver for my amr modem and it seems I must change the Makefile of this slmdm-2.7.10.

It says:
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"


I also says I must then use /lib/modules/`uname -r`/build/include instead of /usr/include/linux/

So what is the kernel source directory I should use in the command ln?

I found a directory exists such as /usr/include/linux, which has promising files such as version.h. ;)

So should I make this link:
ln -s /usr/include/linux/ /lib/modules/2.4.22-10mdk/build/include/linux

Or should I make
ln -s /usr /lib/modules/2.4.22-10mdk/build/

Has anyone any idea?

Thanks in advance :)

acid_kewpie 02-19-2004 02:02 PM

you need to install the kernel-source rpm. everything after that should fall into place. the files will be at /usr/src/linux

Veivann 02-19-2004 02:33 PM

Thanks a lot! Wasn't expecting so quick a reply! I will try that immediately :D
May you find your answers so easily too :)

acid_kewpie 02-19-2004 03:15 PM

me? i don't have questions! i am a walking oracle of knowledge... well... maybe not. :D


All times are GMT -5. The time now is 09:30 AM.