LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2004, 01:27 AM   #1
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Rep: Reputation: 30
Kernel Source not found


I'm trying to install TUN TAP for tunneling, but when I tyoe ./configure, I get:

configure: error: Linux kernel source not found in /usr/src/linux
configure: error: ./configure failed for linux

How do I fix this? I have the source, although I don't know where it is.
 
Old 12-20-2004, 04:14 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
go to /usr/src
type
Code:
ls -l
and post the results here
 
Old 12-20-2004, 05:13 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Go to /usr/src/

if you have a directory starting with linux
ln -s linux-version linux

if you have a directory named for example kernel-2.6
ln -s kernel-2.6 linux
 
Old 12-20-2004, 05:40 AM   #4
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
May be U have to "ln -s /usr/src/linux /usr/src/linux-2.6.9" (supposing U have linux-2.6.9) for creating a symbolic link to kernel sources only if they R already existing (in other words the "/usr/src/linux-2.6.9" must exist).
The cause is the following - some not very intelligent configures try to find a sources exactly in /usr/src/linux and no another.
 
Old 12-20-2004, 01:46 PM   #5
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Okay, here''s what it looks like in Mandrake 10

/usr/src/RPM/

then I have a choice of:

BUILD/ RPMS/ SOURCES/ SPECS/ SRPMS/

Under /BUILD/ there is nothing.

Under RPMS/
athlon/ i386/ i486/ i586/ i686/ k6/ noarch/

Under /SOURCES/ there is nothing.

Under /SPECS/
-rw------- 1 root root 3606 Dec 18 16:22 openvpn.spec
-rw------- 1 root root 0 Dec 18 14:08 tar: *.spec: Not found in archive
-rw-rw-r-- 1 root root 8324 Aug 27 07:37 vtun.spec

Under SRPMS/ there is nothing.

So talk to me like I'm sort of a newb, because I kinda am.
 
Old 12-20-2004, 05:52 PM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
i think you dot have kernel-souce installed
 
Old 12-20-2004, 06:27 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Mr Cheeks is correct. You need to install the kernel-source package that matches your kernel version.

The directory you are seeing is where a source rpm goes.
 
Old 12-20-2004, 08:06 PM   #8
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Which directory do I put it in exactly and how do I do that?
 
Old 12-20-2004, 08:16 PM   #9
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
If i've been able to install other software using:

./configure
make
make install

does that mean I have the source code?
 
Old 12-21-2004, 02:05 AM   #10
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Post Mandrake RPM

Mandrake as i very know is RPM distro. What does it means? If U wanna to play games only U probably never will use "./configure && make && make install", but what U will do anyway - use RPM. If U installed Mandrake from CD/DVD U should chdir to cdrom, then (as i can remember my little expiriencing with this fat distro) "cd Mandrake/RPMS". Here U may find something like
"kernel-source-2.4.22". For to install it U should type the following in "rpm -ivh kernel-source-2.4.22". Apropos, U can just now "rpm -q kerne-source" for to check wether it is installed already (it it'll not tell U that RPM is not installed then U have it).
 
Old 12-29-2004, 09:47 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Install the kernel-source rpm that corresponds to which kernel you are running. The rpm's install script will create the directory and a link to it called /usr/src/linux. The base directory of the source will contain the version number of the kernel. The /usr/src/linux link is a generic name where the compiler will look.
 
  


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
Kernel Source not Found? prh MEPIS 4 10-01-2005 12:18 PM
Linux Kernel Source Tree Not found pzearfoss Linux - General 6 12-28-2004 02:16 PM
nVidia install kernel source not found Dinabandhu Linux - Newbie 2 08-22-2004 07:44 PM
Linux kernel source not found error RH 7.2 Accelet Linux - Hardware 2 08-04-2004 02:26 PM
linux kernel source tree not found whats wrong? vavoem Linux - Hardware 6 08-02-2004 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:33 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