-   Linux - Newbie (
-   -   missing kernel-sources (

littleonion 12-15-2004 03:33 AM

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

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.


scuzzman 12-15-2004 04:16 AM

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

Quis 12-15-2004 04:24 AM

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.

jschiwal 12-15-2004 05:04 AM

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.

littleonion 12-15-2004 06:04 AM

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?


abisko00 12-15-2004 06:13 AM

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:

cd /usr/src/linux
rm .config
zcat /proc/config.gz > .config
make oldconfig
make prepare

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

littleonion 12-15-2004 01:05 PM

>> 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...


Quis 12-16-2004 03:56 AM


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.

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

abisko00 12-16-2004 04:03 AM

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.

All times are GMT -5. The time now is 04:02 PM.