[TriLUG] Installing kernel module -- missing headers/broken symlink

Steven Hilton mshiltonj at libertystorm.com
Tue Mar 11 23:48:24 EST 2003


That worked, thanks! Took a bit to find these rpms, though.

Located at:
http://ftp.ntua.gr/pub/linux/redhat/support/enterprise/isv/kernel-archive/7.2/2.4.9-21/i386/



On Tue, 2003-03-11 at 09:29, David A. Cafaro wrote:
> You may be able to solve your headaches by installing the kernel source
> rpm.  Example:
> 
> rpm -ivh kernel-source-2.4.9.21.i386.rpm
> 
> and 
> 
> rpm -ivh kernel-headers-2.4.9-21.i386.rpm (if not installed)
> 
> And this should give you everything you may need to compile kernel
> modules.  You'll have to find the rpm's since I don't think those are
> the versions that come on the CD and I didn't seem them on the Redhat
> mirror that I checked (they skipped up to the 2.4.18-24 kernel they sent
> out for all RH 7.x releases). 
> 
> Cheers,
> David
> 
> On Tue, 2003-03-11 at 07:00, Steven Hilton wrote:
> > I'm trying to intall the USB Quickcam Video Camera driver, online at 
> > http://qce-ga.sourceforge.net. The READE is pretty straightforward, but
> > I think there may be something wrong with my installation.
> > 
> > I'm running RH 7.2. I do not know C. I know very little about "kernel
> > stuff" :-)
> > 
> > Running make on the driver makefile bombs out early, reporting:
> > 
> > quickcam.c:1:12: /lib/modules/2.4.9-21/build/include/linux/config.h: No
> > such file or directory
> > 
> > which is true enough.
> > 
> > I find that the "build" part that path is a broken symlink on my system:
> > 
> > 
> > [root at jefferson 2.4.9-21]# pwd
> > /lib/modules/2.4.9-21
> > [root at jefferson 2.4.9-21]# ls -al
> > total 248
> > drwxr-xr-x    4 root     root         4096 Mar 12  2002 .
> > drwxr-xr-x    3 root     root         4096 Feb 22  2002 ..
> > lrwxrwxrwx    1 root     root           31 Feb  7  2002 build ->
> > ../../../usr/src/linux-2.4.9-21
> > [...]
> > 
> > There is no 'linux.*' directory under /usr/src.
> > 
> > However, there *is* a '/usr/include/linux' directory, and it has all the
> > needed kernal header files. Looks like, anyway.
> > 
> > So my question is two-fold:
> > 1) Why would the /usr/src/linux* directories be missing?
> > and 
> > 2) Can I just do this to solve my problem?
> > 
> > cd /lib/modules/2.4.9-21
> > ln -f -s /usr/include/linux/ build
> > 
> > Or would that be a Bad Idea? 
> > Barring that, what is the preferable course of action? 
> > 
> > I also tried to intall the alsa sound drivers recenly, and IIRC it
> > failed to install for the same reasons.
> > 
> > Thanks for any input.
> > 
> > 
> > -- 
> > Steven Hilton <mshiltonj at libertystorm.com>
> > 
> > _______________________________________________
> > TriLUG mailing list
> >     http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG Organizational FAQ:
> >     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> > 
> 
> 
> 
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
-- 
Steven Hilton <mshiltonj at libertystorm.com>




More information about the TriLUG mailing list