LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? (https://www.linuxquestions.org/questions/linux-general-1/what-does-directory-usr-src-linux-doesn%27t-appear-to-contain-kernel-source-mean-560760/)

jtp51 06-10-2007 10:55 PM

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,

syg00 06-10-2007 11:23 PM

What-ever the author of the message meant it to mean.
If it's a script, see what it is checking for.

kstan 06-10-2007 11:29 PM

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.

jtp51 06-10-2007 11:56 PM

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,

syg00 06-11-2007 12:22 AM

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.


All times are GMT -5. The time now is 10:39 PM.