LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-22-2010, 08:17 PM   #1
j9678
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 0
/usr/src/linux missing !!!


I suppose there should be some files inside /usr/src/

Today, I found that there's no audio output from my Linux PC.
Then I decide to re-install the sound driver by execute
Code:
./configure --with-cards=intel8x0
And it show me this at the end:
Code:
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... 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).
I go to /usr/src/ and found there's nothing inside. How can it happen !?
 
Old 01-22-2010, 09:02 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Try (using either apt-get or aptitude):
Code:
aptitude install linux-source-$(uname -r)
 
Old 01-22-2010, 09:03 PM   #3
j9678
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 0
problem fixed

don't know why the source file located at a different place.

I just make a symbolic link to that directory

thanks for reading my post
 
  


Reply



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
WARNING: Symbol version dump /usr/src/linux-2.6.25/Module.symvers is missing gauravholey Linux - Kernel 2 06-21-2009 12:28 AM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
/usr/src/linux? krackerroot Slackware 6 10-26-2003 02:31 PM
/usr/src/linux missing sanjiv Mandriva 11 10-10-2003 12:03 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

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

All times are GMT -5. The time now is 06:12 AM.

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
Open Source Consulting | Domain Registration