LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-07-2003, 11:30 AM   #1
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Rep: Reputation: 15
Problem with xconfig and menuconfig


Here's what happened. I was on my way to compile the kernel. I ran make clean. Then I ran make xconfig. I had already run startx. Xconfig gave me an error. I will show the full dialog in a minute. So I ran menuconfig. It also crashed with an error. Something about ncurses needed to be installed. So, I got the RPM off of the RedHat website and installed it. It gave me some conflict errors, showing that I already had ncurses. I tried xconfig and menuconfig again, and neither worked. I was compiling 2.4.21 while running 2.4.20. I'm using RedHat Linux 7.2. I had this same error recompiling my current (2.4.20) source, too. So, anybody have any idea what's wrong??

Here is the xconfig error messages:
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux-2.4.21/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/linux-2.4.21/scripts'
wish -f scripts/kconfig.tk
Error in startup script:
error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?)error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?)
while executing
"exec echo $val | sed s/^-//g | tr -d \[:digit:\] "
(procedure "validate_int" line 2)
invoked from within
"validate_int CONFIG_SD_EXTRA_DEVS "$CONFIG_SD_EXTRA_DEVS" 40"
(procedure "update_define_menu25" line 11)
invoked from within
"update_define_menu$i"
(procedure "update_define" line 3)
invoked from within
"update_define 1 $total_menus 0"
(file "scripts/kconfig.tk" line 26182)
make: *** [xconfig] Error 1

Here's the menuconfig error messages:
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.21/scripts/lxdialog'

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.21/scripts/lxdialog'
make: *** [menuconfig] Error 2

Please help me!
Eric S.
 
Old 07-07-2003, 12:17 PM   #2
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
I had this errormessage once too. It is easy.
This message comes if you do not have installed gcc.
The other possibility is that you didn t have installed the libncurses5 or libncurses5-dev
I do not know if you need libncurses or libncurses5-dev i installed both cause i was too lazy to find out which package i need.
 
Old 07-07-2003, 12:25 PM   #3
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and see what's under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle phil]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software and installation and uninstallation
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

# Redhat links
RedHat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project
 
Old 07-08-2003, 10:52 AM   #4
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
I reinstalled RedHat and fixed this problem.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make menuconfig | xconfig | gconfig don't work humbletech99 Debian 2 10-24-2005 11:40 AM
problem with menuconfig woodland56 Debian 10 09-16-2005 09:01 AM
make xconfig, xconfig with weird words pakkua80 Fedora - Installation 3 11-17-2004 06:19 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 07:36 AM
xconfig, menuconfig holdenowen Linux - Newbie 2 07-17-2004 09:58 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration