Install libncurses5-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libncurses5-dev
developer's libraries for ncurses
The ncurses library routines are a terminal-independent method of updating character screens with reasonable optimization. . This package contains the header files, static libraries and symbolic links that developers using ncurses will need.