Installing ncurses on Ubuntu/Mint

Some text based apps use ncurses. When compiling from source and you see an error like:

checking for main in -lncurses... no
configure: error: ncurses library not found !

To install, use:

sudo apt-get install libncurses-dev