Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-10-2005, 04:16 PM   #1
LQ Newbie
Registered: Apr 2005
Location: Jo'burg South Africa
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Compiling the Kernel - errors in make menuconfig ARCH=um

I'm doing a Linux Systems Programming course, but I'm very new to Linux.

(I'm using Ubuntu linux, with gcc version 3.3.4)

I've got a copy of the linux-2-6-10 user mode kernel, and when I run "make menuconfig ARCH=um", I get the following errors:

HOSTLD scripts/kconfig/mconf
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>>Unable to find the Ncurses libraries
>> You must install ncurses-devel in order
>> to use 'make menuconfig'

I've tried "apt-get install ncurses-dev" but when I do the make menuconfig again I get the same errors.

Any suggestions...

I'm really out of my league with Linux :-) Please help.

Thanks in advance.
Old 04-11-2005, 04:29 AM   #2
LQ Newbie
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Try installing libncourses.
$ sudo apt-get install libncurses5
$ sudo apt-get install libncurses5-dev
Old 04-11-2005, 01:43 PM   #3
LQ Newbie
Registered: Apr 2005
Location: Jo'burg South Africa
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Got it

Thanks ciocanel,

I tried that, but I kept on getting the same errors errors.
I'm not sure if apt-get is supposed to download the packages from the Internet. I'm so clueless in linux that I can't even configure my modem.

So (on a windows machine) I did some heavy weight searching on google and I found a site where I could download the package libncurses5-dev_5.4-4_i386.deb. (I don't think urls are allowed to be posted - otherwise I would share it).

After a lot of messing about: editing /etc/apt/sources.list and trying all combinations of :
$ sudo apt-get install libncurses5-dev_5.4-4_i386.deb
$ sudo apt-get install libncurses5
$ sudo apt-get install libncurses5-dev
$ sudo aptitude install libncurses5-dev_5.4-4_i386.deb

I'm not 100% sure what sorted me out in the end, but when I ran : dpkg -i libncurses5-dev_5.4-4_i386.deb - The console began to stream with promising messages.

sudo apt-get install libncurses5-dev
make menuconfig ARCH=um

Finally - the fancy make menuconfig menu displayed itself in my console. WOO HOO!!!

Hopefully this thread will help someone with package problems.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling a Kernel (make config/menuconfig) Janusz11 Slackware 5 08-15-2005 04:40 PM
Errors Trying to "make menuconfig" kernel-source-2.6.10 Royle Debian 2 02-14-2005 06:53 AM
make menuconfig errors SiQDiZ Debian 3 06-01-2004 01:56 AM
make menuconfig errors Abe_the_Man Linux - General 3 04-19-2004 09:02 AM
make errors while compiling a kernel naild2thefloor *BSD 4 02-28-2004 03:43 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration