LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2004, 03:33 AM   #1
littleonion
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: debian
Posts: 10

Rep: Reputation: 0
missing kernel-sources


I am running Suse 9.1 Pro and recently applied the latest online update. I checked the box "remove packages after installation", so e.g. the kernel-sources are not longer available in /usr/src/linux/.

Now I am trying to install an ISDN device (Teledat usb 2 a/b / by German Telekom). Drivers available at sourcefourge.net.

The ./configure-process needs some data while applying a kernel-headers test and does not find it under /usr/src/linux/. Is there a chance to make this ./configure job work without downloading the packages again?

Could anyone of you guys out there help me with this one? Thanks in advance and kind regards.

./littleonion
 
Old 12-15-2004, 04:16 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
No. You cant do the configure without the kernel sources installed. You'll need to reinstall them.

Last edited by scuzzman; 12-15-2004 at 05:40 AM.
 
Old 12-15-2004, 04:24 AM   #3
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
I think you have to reinstall the kernel-sources.

As you can see, the configure process tests for the kernel source. You can assume that the compilation process needs the source, too.
 
Old 12-15-2004, 05:04 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Maybe I'm wrong, but I think the remove packages after installation option will instead remove the RPM update files from the /tmp directory after they are used. This just means that you will need to redownload them if you need to apply them later.

The rpm script may have changed the name of the link for /usr/src/linux when you updated the kernel. You may need to update the kernel-sources package also. Usually the sources for each kernel has the version number appended to the directory name, with /usr/src/linux being a symbolic link pointing to the current one.
 
Old 12-15-2004, 06:04 AM   #5
littleonion
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: debian
Posts: 10

Original Poster
Rep: Reputation: 0
I think you are quite right with your guess concerning the rpm-packages!

OK, maybe the symbolic link is corrupt - do you have a hint, where it should point normally?

./littleonion

Last edited by littleonion; 12-15-2004 at 02:14 PM.
 
Old 12-15-2004, 06:13 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I guess the others pointed this out already: the 'remove packages' button removes the rpm-package, but not the installed software. So if Yast indicates the sources installed, they are still there. Try rpm -q kernel-source on console to verify this.

The problem may be that the kernel has not been 'prepared'. Don't ask me what that means, but it think it could help if you do the following:
Code:
su
<password>
cd /usr/src/linux
rm .config
zcat /proc/config.gz > .config
make oldconfig
make prepare
exit
Now try to run ./configure again.

EDIT: if you have the latest sources installed, /usr/src/linux should point to /usr/src/linux-2.6.5-7.111.5

Last edited by abisko00; 12-15-2004 at 06:15 AM.
 
Old 12-15-2004, 01:05 PM   #7
littleonion
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: debian
Posts: 10

Original Poster
Rep: Reputation: 0
>> abisko00:
You stated that

/usr/src/linux should point to /usr/src/linux-2.6.5-7.111.5

but in my installation there has not been any (symbolic) link in /usr/src/ at all. And I do not have a folder named /usr/src/linux-<kernelno> either. The only thing I find being named that way is an archive called /usr/src/packages/SOURCES/linux-2.4.21.tar.bz2.
The code you suggested in your last post did not work out, because of the command make oldconfig - the response is:

make: *** No rule to make target `oldconfig'. Stop.

I am not too familiar with this kind of adm-work, yet. So I'm afraid I still do not understand how things are related here. Could you please give it another try to explain this to me? Thx in advance...

./littleonion

Last edited by littleonion; 12-15-2004 at 01:15 PM.
 
Old 12-16-2004, 03:56 AM   #8
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
Quote:
Originally posted by littleonion
... in my installation there has not been any (symbolic) link in /usr/src/ at all. And I do not have a folder named /usr/src/linux-<kernelno> either. ...
make: *** No rule to make target `oldconfig'. Stop.
./littleonion
This means you have no kernel-source installed on your system.
You may want to verify it with:

rpm -qa |grep kernel

and watch for the (NO) source entry's

after you have downloaded and installed your kernel-source you have to prepare your sources as the user abisko00 has shown.





dann sollte es klappen
 
Old 12-16-2004, 04:03 AM   #9
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
It could be that you installed the 'wrong' kernel source. SuSE offers two different versions of which only one is usable in the way you need it. You should always install the package with 'i586.prm' in the name, not the one with 'src.rpm'. The later is installed to /usr/src/packages, the first to /usr/src/linux.
 
  


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
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 07:30 AM
why don't I have kernel sources?? joshknape Linux - Newbie 2 07-19-2005 03:43 AM
Kernel Sources PC Junior Linux - Newbie 12 06-28-2005 06:07 PM
Kernel Sources unwrittenlaw Linux - General 1 12-06-2004 05:00 AM
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


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration