LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2007, 10:55 PM   #1
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
Question What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean?


What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean?

I have the following in my /usr/src/ directory:

Code:
lrwxrwxrwx  1 root  src         27 2007-06-09 01:44 linux -> linux-source-2.6.20-2.6.20/
drwxr-xr-x 20 root  root      4096 2007-04-15 06:53 linux-headers-2.6.20-15
drwxr-xr-x  4 root  root      4096 2007-04-15 06:53 linux-headers-2.6.20-15-generic
drwxr-xr-x 20 root  root      4096 2007-06-09 17:57 linux-headers-2.6.20-16
drwxr-xr-x  4 root  root      4096 2007-06-09 17:57 linux-headers-2.6.20-16-generic
drwxr-sr-x 21 root  src       4096 2007-04-12 14:11 linux-source-2.6.20-2.6.20
-rw-r--r--  1 root  src    1563513 2007-05-24 11:06 linux-source-2.6.20_2.6.20-16.28.diff.gz
-rw-r--r--  1 root  src       2472 2007-05-24 11:06 linux-source-2.6.20_2.6.20-16.28.dsc
-rw-r--r--  1 root  src   62174876 2007-04-12 14:48 linux-source-2.6.20_2.6.20.orig.tar.gz
I thought the linux-source-2.6.20-2.6.20/ would be correct?

What I'm trying to do is install the Cisco VPN Client and it asks:

Directory containing linux kernel source code [/usr/src/linux]

and I get the error message:

Directory "/usr/src/linux" doesn't appear to contain kernel source.


Thanks,

Last edited by jtp51; 06-10-2007 at 10:58 PM.
 
Old 06-10-2007, 11:23 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
What-ever the author of the message meant it to mean.
If it's a script, see what it is checking for.
 
Old 06-10-2007, 11:29 PM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Quote:
Originally Posted by jtp51
What I'm trying to do is install the Cisco VPN Client and it asks:
To make your live easier, try to install vpnc(Heard that it compatible with cisco firewall).

sudo apt-get install vpnc

Good luck.
 
Old 06-10-2007, 11:56 PM   #4
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Original Poster
Rep: Reputation: 15
Question

Well, I found that it's looking for:

Code:
if [ -f "$the_srcdir/include/linux/modversions.h" ]; then
     got_srcdir=true
else
     echo "Directory \"$the_srcdir\" doesn't appear to contain kernel source."
fi
The file modversions.h - which, I don't have - is causing the issue.

OK.

So my options are what? I had downloaded the source with apt-get, do I go out to kernel.org and find the version I need?

Or do I modify the script to look for a different file?

Plus, I'll take a look at vpnc as well.

Thanks,
 
Old 06-11-2007, 12:22 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You don't have it at all ??? - check in your "headers" directories.
Ugly.

Me, I'd probably hack the script. You're likely to run into similar problems elsewhere. Maybe just fix them as they arise.
 
  


Reply

Tags
correct, kernel, source



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
"/usr/src/linux" should you use it ksnash Programming 6 04-30-2005 01:11 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:49 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
Open Source Consulting | Domain Registration