LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Compiling the Kernel - errors in make menuconfig ARCH=um (https://www.linuxquestions.org/questions/ubuntu-63/compiling-the-kernel-errors-in-make-menuconfig-arch%3Dum-311781/)

donoh 04-10-2005 04:16 PM

Compiling the Kernel - errors in make menuconfig ARCH=um
 
Hi,
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.
Donoh

ciocanel 04-11-2005 04:29 AM

Try installing libncourses.
$ sudo apt-get install libncurses5
$ sudo apt-get install libncurses5-dev

donoh 04-11-2005 01:43 PM

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.

Then...
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.


All times are GMT -5. The time now is 06:47 PM.