Below are instructions for installing ncurses on various Linux and Unix operating systems.
sudo apt-get update
sudo apt-get install lib32ncursesw5-dev
sudo dnf update --refresh
sudo dnf install ncurses-devel
sudo yum update
sudo yum install ncurses-devel
sudo pacman -Sy
sudo pacman -S ncurses
sudo zypper ref
sudo zypper in ncurses-devel
Install the Homebrew package manager by following the instructions on the website: http://brew.sh/. Once Homebrew is installed, you can install ncurses.
brew install ncurses