Installing ncurses
Adapted from the
INSTALL,README.MinGWandREADME.emxfiles 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.
Who should read what
Section titled “Who should read what”- Packagers and distribution integrators should read For system integrators.
- If you are converting from BSD curses and don’t have root access, read BSD conversion notes.
- If you build applications that use GPM with ncurses, read Using GPM.
- If you are cross-compiling, read Building with a cross-compiler.
- The Ada95 binding has its own instructions in the
Ada95directory, and this guide doesn’t cover it.
Requirements
Section titled “Requirements”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.