-
Kernel header on Mandrake CD and lufs installation
Hi all
I am trying to install lufs for founting remote ftp sites.
On running ./configure I get errot like this
[root@sauryalap lufs-0.9.7]# ./configure
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking OS... Linux
checking kernel... 2.4.22-10mdk
checking kernel support... supported in kernel/Linux/2.4
checking kernel headers... configure: error: not found in /lib/modules/2.4.22-10mdk/build/include. please install them!
Now I have done it in the past but I have forgot what I have to install to make this to work.
What package includes kernel header?
Thanks
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
We do get a lot of these here. Install the kernel-source package for your current running kernel version.
-
It is already installed? Should I remove it and reinstall?
SS
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
rpm -qa | grep kernel-source
shows kernel-source-2.4.22-10mdk.i#86.rpm ?
Does /lib/modules/2.4.22-10mdk/build/include point to /usr/src/linux-2.4.22-10mdk/include or /usr/src/linux/include ?
-
Originally posted by mdwatts
rpm -qa | grep kernel-source
shows kernel-source-2.4.22-10mdk.i#86.rpm ?
Yes Like this:
[root@sauryalap modules]# ls
2.4.22-10mdk/ 2.4.22-21mdk/
[root@sauryalap modules]# cd 2.
2.4.22-10mdk 2.4.22-21mdk
[root@sauryalap modules]# cd 2.4.22-10mdk/
[root@sauryalap 2.4.22-10mdk]# ls
kernel/ modules.description modules.isapnpmap modules.pnpbiosmap
misc/ modules.generic_string modules.parportmap modules.usbmap
modules.dep modules.ieee1394map modules.pcimap
[root@sauryalap 2.4.22-10mdk]# pwd
/lib/modules/2.4.22-10mdk
[root@sauryalap 2.4.22-10mdk]#
Does /lib/modules/2.4.22-10mdk/build/include point to /usr/src/linux-2.4.22-10mdk/include or /usr/src/linux/include ?
There is no subdirectory in as build in
/lib/modules/2.4.22-10mdk
You can see the contents in above ls.
Thanks
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
And what about
rpm -qa | grep kernel-source
??????????
-
Originally posted by mdwatts
And what about
rpm -qa | grep kernel-source
??????????
Sorry here it is
[root@sauryalap root]# rpm -qa | grep kernel-source
kernel-source-2.4.22-26mdk
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
Originally posted by saurya_s
Sorry here it is
[root@sauryalap root]# rpm -qa | grep kernel-source
kernel-source-2.4.22- 26mdk
Something is out of whack there- the kernel-source version number that RPM is finding doesn't match that the kernel version being reported during the ./configure process (2.4.22-10mdk). Have you ever recompiled the kernel on this system? Do you have multiple kernels on the system? Did you get/install the kernel-source package from the same install source as the 2.4.22-10 distro?
-
Originally posted by DMR
Something is out of whack there- the kernel-source version number that RPM is finding doesn't match that the kernel version being reported during the ./configure process (2.4.22-10mdk).
>>>>>>>
Excellent Observation moderator.
Have you ever recompiled the kernel on this system?
>>>>>>>>>>
I have never compiled the kernel. However, I did update everything when prompted for update. It might be upgraded at that time, though I am just guessing. I haven't got any idea of compiling kernel.
Do you have multiple kernels on the system?
>>>>>>>
It seems so.
A result of rpm -qa|grep kernel, gives
[root@localhost lufs-0.9.7]# rpm -qa|grep kernel
kernel-2.4.22.10mdk-1-1mdk
kernel-doc-2.4.22-21mdk
kernel-source-2.4.22-26mdk
All of them are different.
Did you get/install the kernel-source package from the same install source as the 2.4.22-10 distro?
>>>>>>>>
I haven't got a clue but as I said I set for autoupdates and did all updating using mandrakes mirrors, norlug mandrake rpm repository and from contribs.
Will I be able to rescue my computer?!!
Desperately need help.
Last edited by saurya_s; 02-06-2004 at 06:40 PM.
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
OK- look in /boot and see what kernel images live there. Is there only kernel-2.4.22.10mdk, or are there others? Post the contents of the directory if you aren't sure.
It does look like your kernel source files got out of sync with your actual kernel image version, perhaps by the auto-updater.
-
Originally posted by DMR
OK- look in /boot and see what kernel images live there. Is there only kernel-2.4.22.10mdk, or are there others? Post the contents of the directory if you aren't sure.
>>>>>>>>>>
I think only one of kernel-2.4.22.10mdk.
But I am posting the ls of /boot[ss@localhost 1009 /]$ cd boot/
[ss@localhost 1010 boot]$ l
boot.0300 kernel.h-2.4.22-10mdk
config@ map
config-2.4.22-10mdk message@
diag1.img message-graphic
diag2.img message-text
grub/ System.map@
initrd-2.4.22-10mdk-i686-up-4GB.img System.map-2.4.22-10mdk
initrd-2.4.22-10mdk.img uk.klt
initrd.img@ vmlinuz@
kernel.h@ vmlinuz-2.4.22-10mdk
It does look like your kernel source files got out of sync with your actual kernel image version, perhaps by the auto-updater.
It seems so as my lufs installation was wroking earlier,Now, since this is on a laptop, I periodically took it to work where I could upgrade quickly on LAN. I never tested it untill today, when I realized that it is not working.
Thanks
SS
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
OK, everything in /boot references a 2.4.22.10 kernel; no mention of a 2.4.22-26 kernel. You might need to remove the .26 source files and replace them with the .10 sources, or you might be able to rectify the problem by adding/adjusting a symbolic link to the headers. Unfortunately, I can't give you more info on the second possibility until I get back home to my Linux boxen (I'm posting from a Win2k box at the moment).
Just FYI- you probably wouldn't have noticed this problem had you not tried to compile a new program from source; a successfully installed system will work without having the kernel-source package installed at all. As a matter of fact, many (most?) distros don't even install the kernel source/header files by default.
-
Yes, I got the FIY bit. Initially when I installed lufs I had post for it to find the header of the kernel.
Here are the long ls. As I can see I have the kernel header pointing to right kernel, still I get the same message during ./configure. Ofcourse, the kernel source is still .26.
[root@localhost lufs-0.9.7]# ll /boot
total 2940
-rw-r--r-- 1 root root 512 Nov 22 13:05 boot.0300
lrwxrwxrwx 1 root root 19 Feb 7 00:47 config -> config-2.4.22-
10mdk
-rw-r--r-- 1 root root 52049 Sep 18 11:43 config-2.4.22-10mdk
-rw-r--r-- 1 root root 5032 Sep 18 15:46 diag1.img
-rw-r--r-- 1 root root 16796 Sep 18 15:46 diag2.img
drwxr-xr-x 2 root root 4096 Nov 22 12:51 grub/
lrwxrwxrwx 1 root root 35 Feb 7 00:31 inird.img -> initrd-2.4. 22-10mdk-i686-up-4GB.img
-rw-r--r-- 1 root root 377470 Feb 6 22:02 initrd-2.4.22-10mdk-i686 -up-4GB.img
-rw-r--r-- 1 root root 89967 Feb 7 00:43 initrd-2.4.22-10mdk.img
lrwxrwxrwx 1 root root 23 Feb 7 00:43 initrd.img -> initrd-2.4 .22-10mdk.img
lrwxrwxrwx 1 root root 27 Feb 7 00:50 kernel.h -> /boot/kernel .h-2.4.22-10mdk
-rw-r--r-- 1 root root 537 Nov 22 13:19 kernel.h-2.4.22-10mdk
-rw------- 1 root root 264704 Feb 7 00:43 map
lrwxrwxrwx 1 root root 15 Feb 7 00:43 message -> message-graph ic
-rw-r--r-- 1 root root 164755 Feb 6 22:02 message-graphic
-rw-r--r-- 1 root root 131 Feb 7 00:43 message-text
lrwxrwxrwx 1 root root 23 Nov 22 13:17 System.map -> System.map -2.4.22-10mdk
-rw-r--r-- 1 root root 625045 Sep 18 11:43 System.map-2.4.22-10mdk
-rw-r--r-- 1 root root 256 Nov 22 13:05 uk.klt
lrwxrwxrwx 1 root root 20 Feb 7 00:43 vmlinuz -> vmlinuz-2.4.2 2-10mdk
-rw-r--r-- 1 root root 1343803 Sep 18 11:43 vmlinuz-2.4.22-10mdk
[root@localhost lufs-0.9.7]#
Please let me know how I can get the right source back!!
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
-
Sorry, but my response will have to wait until tomorrow. I need to get off the computer now- dinner with a lovely lady calls tonight.
-
Sure mate, Bon appetit!!
Right I have removed the -26 version rpm, and have rescued the system with CD to 10 version. But the error message while installing lufs is still says the same.
I am not able to find kernel source for version 10 of kernel on my CD? Weird
SS
Last edited by saurya_s; 02-07-2004 at 06:32 AM.
Linux Newbie
Expermienting with Mandrake 9.2 and SuSE 9
AJP/Clevo laptop-866MHz PIII,384MB SDRAM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|