View Full Version : Finding kernel source tree in Ubuntu 6.06
Djembe
02-12-2007, 06:59 PM
Hi folks, I'm new to Linux and have run into a tricky issue. I need to change a line in a makefile to "</absolute_path_to_your_kernel_tree/>" and I have NO IDEA how to find said kernel tree or even what it looks like. I was given a link to the vanilla kernel sources website, but the kernel I have isn't listed there! I've seen several references to it on the Ubuntu forums, but it's always in an offhand way and not helpful in locating it. So for those of you running Ubuntu 6.06 (dapper) with a 2.6.15-28-386 kernel, can you tell me where the kernel source tree is so I can run my program? Any advice would be helpful. Thanks much!
drlouis
02-12-2007, 07:30 PM
Hi folks, I'm new to Linux and have run into a tricky issue. I need to change a line in a makefile to "</absolute_path_to_your_kernel_tree/>" and I have NO IDEA how to find said kernel tree or even what it looks like. I was given a link to the vanilla kernel sources website, but the kernel I have isn't listed there! I've seen several references to it on the Ubuntu forums, but it's always in an offhand way and not helpful in locating it. So for those of you running Ubuntu 6.06 (dapper) with a 2.6.15-28-386 kernel, can you tell me where the kernel source tree is so I can run my program? Any advice would be helpful. Thanks much! kernel source is in /usr/src on slackware... you might not have the source by default in ubuntu (I dont know), but you should be able to apt-get it.
Edit: http://ubuntuforums.org/showthread.php?t=70905
bigtrouble77
02-12-2007, 08:01 PM
I think drlouis has the correct location. Browse with nautilus to that location and see if there is a directory that cooresponds to your kernel. If not, then you may have to install the package through apt or synaptic.
Most compiling I've done has only needed access to the kernel headers so I'm not even what the difference is. You may want to put in your headers directory and see if that works... something like /usr/src/linux-headers-2.6.15-27-amd64-generic (that's the path on my machine).
seablade
02-12-2007, 08:17 PM
Technically most distributions have /usr/src/linux as a symbolic link to the correct directory with the source in it(Usually something like /usr/src/linux-2.6.16r8 or wwhatever)
Usually just using /usr/src/linux will work, though on occasion you may have to enter the exact path.
Seablade
Djembe
02-12-2007, 09:06 PM
Thank you all very much for your help! It turns out that what I needed to install was the Linux headers for my kernel, which drlouis' link told me how to do. Once that was done, everything worked okay :dance2: Rep for you all! :cheers:
vBulletin® v3.6.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.