kernel compilation: ncurses issue


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat kernel compilation: ncurses issue
# 1  
Old 02-14-2008
Data kernel compilation: ncurses issue

Hi,

While trying to build the linux kernel - 2.6.24.2,
i get the following error message during initial phase(make menuconfig) :
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory <===
In file included from scripts/kconfig/lxdialog/checklist.c:24:

It seems that something is wrong with 'ncurses'
<snip from linux-2.6.24.2/scripts/kconfig/lxdialog/dialog.h>
#include CURSES_LOC
<snip from linux-2.6.24.2/scripts/kconfig/lxdialog/dialog.h>

<snip from linux-2.6.24.2/scripts/kconfig/lxdialog/check-lxdialog.sh>
# Where is ncurses.h?
ccflags()
{
if [ -f /usr/include/ncurses/ncurses.h ]; then
echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
elif [ -f /usr/include/ncurses/curses.h ]; then
echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
elif [ -f /usr/include/ncurses.h ]; then
echo '-DCURSES_LOC="<ncurses.h>"'
else
echo '-DCURSES_LOC="<curses.h>"'
fi
}

<snip from linux-2.6.24.2/scripts/kconfig/lxdialog/check-lxdialog.sh>

After looking into the /usr/include directory , i got to know that the header ncurses.h is absent

On the same machine,i could see an rpm by the name "ncurses-5.5-24.20060715"
[amit@localhost include]$ rpm -qa|grep -i ncurses
ncurses-5.5-24.20060715

[amit@localhost include]$ rpm -qi ncurses-5.5-24.20060715
Name : ncurses Relocations: (not relocatable)
Version : 5.5 Vendor: Red Hat, Inc.
Release : 24.20060715 Build Date: Thu 31 Aug 2006 05:41:08 PM IST
Install Date: Thu 07 Feb 2008 08:30:07 PM IST Build Host: hs20-bc1-7.build.redhat.com
Group : System Environment/Libraries Source RPM: ncurses-5.5-24.20060715.src.rpm
Size : 2829883 License: distributable
Signature : DSA/SHA1, Thu 18 Jan 2007 09:40:59 PM IST, Key ID 5326810137017186
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : NCURSES - New Curses
Summary : A terminal handling library
Description :
The curses library routines are a terminal-independent method of
updating character screens with reasonable optimization. The ncurses
(new curses) library is a freely distributable replacement for the
discontinued 4.4 BSD classic curses library.

i tried to install the latest ncurses(version 5.6) downloaded from the site:

ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.6.tar.gz, but this also failed during the 'make' step

Now to configure the kernel, i can go through the .config file and edit the parameters there,
but this would be really a tedious job(though heard that most of the programmers prefer this)

One guy asked me to install the development library,and while doing the same,following issues creeped up Smilie

I tried a lot to find the ncurses-development library for version 5.5 for Redhat 5 over net,but could not Smilie

[root@localhost ]# rpm -qa|grep -i *ncurses*
ncurses-5.5-24.20060715

[root@localhost ]# locate libncurses.so.5
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so.5.5

on Debian, i guess the package manager is "synaptic", but what is the packet manager over here(redhat 5)?
i also tried to remove the "ncurses-5.5-24.20060715" which gave me a lot of dependecies issues
[root@localhost ]# rpm -e ncurses-5.5-24.20060715
error: Failed dependencies:
libncurses.so.5 is needed by (installed) info-4.8-14.el5.i386
libncurses.so.5 is needed by (installed) procps-3.2.7-8.1.el5.i386
libncurses.so.5 is needed by (installed) sqlite-3.3.6-2.i386
libncurses.so.5 is needed by (installed) crash-4.0-3.14.i386
-----------------
-----------------
so should i go ahead with removing the "ncurses-5.5-24.20060715" and install the latest version,i.e. Version ncurses 5.6 and corrosponding development library ? will there be any bad impact on dependents ?

~amit
# 2  
Old 02-15-2008
Don't remove it, but instead use "rpm -Uvh package.rpm" to update / upgrade, or use "yum update ncurses" for RHEL 5.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Kernel Compilation Issue

I have installed ubuntu 11.04 on my system. After this when I used to give uname -r it showed me kernel version as 2.6.38. Now I had downloaded kernel 2.6.34.12 from kernel.org and installed it using the following steps: make make modules make modules_install make install This created... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

2. Linux

fortran compilation issue

Hi, I am getting following error when i try to compile : Error: Expected variable in READ statement at (1) read(12,*) ((l1to2(l,j),j=1,2),l=1,ngl(2,4)) Also i am getting following error : Error: Syntax error in COMMON statement at (1) at some statements. I am using mpif90... (1 Reply)
Discussion started by: aksharb
1 Replies

3. Linux

Linux kernel compilation

I have complied the kernel with a default settings... now if I load this kernel , it'll load perfectly but the INTERNET is not workink... I think in the default settings The network modules are not included.. Can anybody help me out with the selection of the network module when i give "make... (1 Reply)
Discussion started by: naresh046
1 Replies

4. Red Hat

Kernel compilation for s3c2440

Hi All, I am trying to compile Kernel 2.6.31 with arm-linux-gcc3.2.2 for s3c2440a, but I am not able to perform the task. I am using Redhat 9 firstly i am using the following commands $make s3c2410_defconfig // there is no error in execution of this command next i run $make ... (0 Replies)
Discussion started by: niranjanvg
0 Replies

5. UNIX for Advanced & Expert Users

Kernel module compilation problem

I have one big module 2.6.18 kernel mod.c I want to divide this to several files. The problem is to write right Makefile lib1.h lib1.c mod.c mod.c works fine normally but when I divide into several files and try to compile with this makefile obj-m := mod.o mod-objs := lib1.o ... (3 Replies)
Discussion started by: marcintom
3 Replies

6. UNIX for Advanced & Expert Users

postfix compilation issue with make

Hi guys, I'm in trouble to do postfix compilation on a Solaris. SunOS 5.10 Generic_118833-33 sun4u sparc SUNW, Sun-Fire-V440 I'm trying to compile postfix-2.4.5 which make replay /usr/ccs/bin/make and it's in the profile When I launch make install clean it replies make: Fatal... (2 Replies)
Discussion started by: moustik
2 Replies

7. UNIX for Dummies Questions & Answers

Issue with makefile compilation

All, I am facing problem with one makefile compilation. The following is the error I am getting, Before proceeding to this I want to let you know all, only last week onwards I started working in solaris10, the same code is working in solaris 9. I dont know any link has to be created, or any path... (3 Replies)
Discussion started by: nsurendiran
3 Replies

8. Programming

Issue with Makefile compilation

All, I am facing problem with one makefile compilation. The following is the error I am getting <Code> /applns/ora10/rdbms/bin/proc sqlcheck=semantics userid=/ CHAR_MAP=VARCHAR2 DBMS=V7 DEFINE=UNIX DEFINE=SUN_SRC_COMPAT iname=mm5900.pc sh: /applns/ora10/rdbms/bin/proc: not found *** Error... (1 Reply)
Discussion started by: nsurendiran
1 Replies

9. UNIX for Dummies Questions & Answers

Kernel compilation

I have re-compiled kernel source code available in /usr/src/linux.2.4.20 with "make" command. The compilation is succesful. Now the problem is create the image for this. The documentation in the same folder says that now you have compile "make image". There is no option for image in Makefile. ... (3 Replies)
Discussion started by: mankrish
3 Replies

10. Red Hat

New kernel Issue

root@pr # iptables -L modprobe: QM_MODULES: Function not implemented modprobe: QM_MODULES: Function not implemented modprobe: Can't locate module ip_tables iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel... (5 Replies)
Discussion started by: prashant_ohol
5 Replies
Login or Register to Ask a Question