How do I install ncurses header files?

Solution 1:

Open up your terminal and install libncurses-dev by using this command:

sudo apt-get install libncurses-dev

Solution 2:

Above problem solved now. all I did was:

sudo apt-get update
sudo apt-get install ncurses-dev

Solution 3:

Tested on Ubuntu 17.04

You should install libncurses5-dev and libncursesw5-dev:

apt install libncurses5-dev libncursesw5-dev

References: https://www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/