Compiling drivers
Tez
binary_y2k2 at blueyonder.co.uk
Sun Dec 17 07:48:17 UTC 2006
Chris Miller wrote:
> On 12/16/06, Tez <binary_y2k2 at blueyonder.co.uk> wrote:
>
>> Renaud (Ron) Olgiati wrote:
>>
>>> New motherboard, comes with instructions to compile the sound and NIC drivers
>>> for Linux.
>>>
>>> First problem was it wanted make; so I installed make
>>>
>>> Then when running make,
>>> ron at ron:/home/opt/src$ sudo make install
>>> Makefile:16: *** Linux kernel source not found. Stop.
>>>
>>> Looked for "kernel source" with synaptic, cannot find anything.
>>>
>>> HELP !
>>>
>>> TIA,
>>>
>>> Ron.
>>> --
>>> It is impossible to defend perfectly
>>> against the attack of those who want to die.
>>>
>>> -- http://www.olgiati-in-paraguay.org --
>>>
>>>
>>>
>> Ok, if you're going to compile anything you'll need a few different
>> packages, fortunately you can get them all with a metapackage:
>> build-essential
>> If you're building modules (drivers), you need the kernel source, or at
>> least the headers. You can install either (or both) of:
>> (for Edgy)
>> linux-source-2.6.17
>> linux-headers-2.6.17-10-generic
>>
>> Usually all you'll need is the headers, so try that first, as the source
>> is around 40MB
>>
>
> Also, I've found that the sources generally hang around /usr/src.
> This was on Gentoo, so YMMV on Ubuntu.
>
>
Yes, if you install the source it will go in /usr/src (and you usually
have to extract it), the headers also go there.
Some install scripts look for /lib/modules/[kernel version]/build which
is a symlink to the headers in /usr/src but if it asks for the location
use "linux-headers-2.6.17-10-generic" for the headers (normally enough
for drivers).
Tez
More information about the kubuntu-users
mailing list