LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
directory with kernel sources?


Hey,

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 12:20 PM.
 
Old 05-19-2007, 12:22 PM   #2
b0uncer
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 rpm.pbone.net for example. Note that the version must match your running kernel exactly.
 
  


Reply


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 2.6.17.13) on Slackware 11? ErV Slackware 7 05-04-2007 01:06 PM
kernel Sources vvuiverine Debian 2 03-19-2007 05:14 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 07:30 AM
kernel-sources on which CD? microsoft/linux Debian 1 03-02-2005 10:09 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 PM.

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