Skip to content

Installing ncurses

Adapted from the INSTALL, README.MinGW and README.emx files in the ncurses source distribution.

This guide covers building ncurses from source and installing it. Read it all before you install, because some steps can overwrite the curses library and terminfo database that your system already has.

The source tree has several subdirectories, including c++, form, man, menu, misc, ncurses, panel, progs and test. The README file at the top of the tree is a roadmap to the package.

This edition corrects the claims about configure’s defaults, option names and file names that no longer match the source. The errata list each correction with what it was checked against.

You need the following to build and install ncurses on a UNIX system:

  • An ANSI C compiler, such as gcc
  • sh (bash will do)
  • awk (mawk or gawk will do)
  • sed
  • A BSD or System V style install (a script is included)

ncurses has also been built on Windows with MinGW and on OS/2 with EMX. Those builds have their own pages.