usr/bin/ld: cannot find -lncurses

4.8k Views Asked by At

I am attempting to link with the ncurses library. This doesn't work, though. These are the error messages:

/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses

collect2: error: ld returned 1 exit status

Makefile:102: recipe for target 'ch_lab' failed

make[1]: *** [ch_lab] Error 1

My question is, which package should I install to get this working on Ubuntu?

1

There are 1 best solutions below

0
On

You should install libncurses

sudo apt-get install libncurses5-dev