Sukhpreet Gill
Sukhpreet Gill

Reputation: 27

usr/bin/ld: cannot find -lncurses

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?

Upvotes: 0

Views: 4892

Answers (1)

Valery Viktorovsky
Valery Viktorovsky

Reputation: 6736

You should install libncurses

sudo apt-get install libncurses5-dev

Upvotes: 5

Related Questions