<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 9:29 PM, Autif Khan <span dir="ltr"><<a href="mailto:autif.mlist@gmail.com">autif.mlist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, Mar 9, 2012 at 10:51 AM, Sraddha <<a href="mailto:dhakatevaishali@gmail.com">dhakatevaishali@gmail.com</a>> wrote:<br>
> I have faced this problem before. I want to compile a Device driver module ,<br>
> simple thing as hello world for my kernel. I want to use the headers instead<br>
> of downloading t entire source.<br>
><br>
> I do this sudo apt-get install kernel-headers-$(uname -r)<br>
><br>
> Reading package lists... Done<br>
> Building dependency tree<br>
> Reading state information... Done<br>
> E: Unable to locate package kernel-headers-2.6.38-13-generic<br>
> E: Couldn't find any package by regex 'kernel-headers-2.6.38-13-generic'<br>
><br>
> How in the world shall I ever get these headers. Regards<br>
<br>
</div></div>Assuming that you are on ubuntu<br>
<br>
#apt-get install linux-headers-$(uname -r)<br>
<br>
You can also use<br>
<br>
#apt-cache search linux | grep headers to see what all is available.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><div>Easiest way, go and download them</div><div><br></div><div><a href="http://packages.ubuntu.com/lucid-updates/linux-headers-2.6.38-13-generic">http://packages.ubuntu.com/lucid-updates/linux-headers-2.6.38-13-generic</a></div>
<div><br></div><div> </div>-- <br><br>Pritam Bankar<br>