make xconfig

Hi. I reinstalled linux redhat 6.0 on my computer and decided to configurate the kernel. I received an error message... Here it is:
[root@localhost /root]# cd ../usr/src/linux
[root@localhost linux]# make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts
make[1]: Entering directory `/usr/src/linux-2.2.5/scripts'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o tkparse.c
tkparse.c:37: stdio.h: No such file or directory
tkparse.c:38: stdlib.h: No such file or directory
tkparse.c:39: string.h: No such file or directory
make[1]: *** [tkparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.2.5/scripts'
make: *** [xconfig] Error 2
[root@localhost linux]#

I really don't know what tkparse standa for... I thought in the beginning that it was Tk which was missing but it isn't. Ireinstalled the source and headers but with no further results. The first time I installed Linux, I had exactly the same problem. I posted a question but couldn't find an answer. When I reinstalled linux for the 2 time, suddendly, everything worked fine except on little thing. I entered make zImage and the file was too big so I had to enter make bzImage but I forgot to reenter make dep. Every time I wanted to enter linux, when it looked for the modules dependencies, it blocked. Anyway, the problem is tkparse... What can I do? Please help me fix linux so that I can, FINALLY, make it work correctly...
Thanks in advance

Who is Participating?
mhomannConnect With a Mentor Commented:
do a 'make bzlilo' instead of 'make bzImage'... this will install thew new kernel AND it's map file in the proper locations...
btw, You'll want a section in /etc/lilo.conf which looks like
# Linux bootable partition config begins
image = /boot/vmlinuz.old
root = /dev/sda1
label = Alt
# Linux bootable partition config ends

replace root=/dev/sda1 with your root device and /boot/ with the location your kernel is located...

this will give you the opportunity to boot into the last kernel before the recompile, in case You build a very bad kernel...
I suggest that you get the orginal tarbal
of the 2.2.x kernel you want from
alex_daggerAuthor Commented:
I don't get it... There must be a solution since I've made it once. Oh, when I write make meuconfig instead of tkparse I get dialog something...
SkAtAn, what's tarbal???

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

it's a tar file
the kernel is compressed with bz2 and
archived with tar : tar.bz2
alex_daggerAuthor Commented:
I found the solution. glibc-devel was missing. I had some other problems but I finally made it. Now I have an enormous one...
So that I get an answer as soon as possible, I'll tell you exactly what did.

went to /usr/src/linux
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install
cd ../../../
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-new

Now I made the necessary changes to lilo:
label = linuxnew
image = /boot/vmlinuz-new
root = /dev/hda6

So the problem isn't here. I'm almost positive... Everything is correct, I reboot.
At lilo prompt I enter 'linuxnew'. It starts. When I see the message 'Finding module dependencies', I wait a little bit but no [   OK   ] message appears. It's completely blocked... In yahoo chat, they told me to copy /usr/src/linux/ and paste it to /boot/ overwriting the old one. I did it. Didn't solve the problem. I'me positive that after the compilation I entered make modules and make modules_install. I did all the compilation from the beginning, didn't help. In lilo.conf, I changed:
map = /boot/map
map = /boot/
didn't help.
That's the second time I had this problem. Last time I overwrited the "old" kernel and I then realized that I had to reinstall evetything. Not even the startup disk could enter me in linux.
I have RedHat 6.0.
So finally, why does the computer blocks like that. I looked for 10 hours to find a solution and I didn't make it, so please understand me if I look a little bit irritated. I would appreciate your help.

alex_daggerAuthor Commented:
I'll take a look but I think the problem is with REDHAT 6.0 that's why I'm going to take the new one 6.1. Anyway, I'll try this.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.