Click to See Complete Forum and Search --> : Error compiling bash-"usr/bin/ld:cannot find -lcurses"


kuber
03-07-2001, 05:36 PM
I have started my linux from scratch system and while compiling bash I got this:

gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -static -g -O2 -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o braces.o bracecomp.o bashhist.o bashline.o siglist.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o xmalloc.o -lbuiltins -lreadline -lhistory -lcurses -lglob -ltilde -lmalloc -lsh
/usr/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [bash] Error 1

Any idea what -lcurses is? Where I can get it?

XxMaCaBrExX
03-07-2001, 05:57 PM
I'm not completely sure, but I think it's a part of "glibc". Don't quote me on that though. ;)

kuber
03-07-2001, 06:05 PM
Hmm.. just installed the latest glibc but got the same error....

Gaccm
03-07-2001, 06:50 PM
try running ldconfig and see if it works, if not... check the man pages for it