Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-19-2007, 11:17 AM   #1
LQ Newbie
Registered: May 2007
Location: Turku, Finland
Distribution: Ubuntu 8.04
Posts: 4

Rep: Reputation: 0
directory with kernel sources?


I've downloaded a newer alsadriver version (tarballs) and was trying to install them now, but ./configure stops halfway as apparently the needed kernel sources can't be found. Is there a way to find out if these sources are in a different directory than the one ./configure tried to look for them? If not, what is that package that I would need to install? Any advice or help is greatly appreciated..!!

My distribution is Mandriva 2007.0, and this is what I did:

[irkku@localhost alsa-driver-1.0.14rc4]$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/irene/alsa-driver-1.0.14rc4
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /usr/src/linux/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

Last edited by irkku; 05-19-2007 at 11:20 AM.
Old 05-19-2007, 11:22 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Like it says, by default they install under /usr/src/. I'm not familiar with Mandrake naming scheme, but the package you're looking for is something like linux-version.src.rpm or kernel-version.src.rpm or kernel-sources-version.rpm or equivalent. Should be easy to find, check for example. Note that the version must match your running kernel exactly.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I remove old kernel sources after kernel upgrade(to on Slackware 11? ErV Slackware 7 05-04-2007 12:06 PM
kernel Sources vvuiverine Debian 2 03-19-2007 04:14 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
kernel-sources on which CD? microsoft/linux Debian 1 03-02-2005 09:09 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC Member Success Stories 0 08-07-2003 07:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration