DevDungeon
- Labs
Knowledge
Social
DevDungeon
Knowledge
Social
This is an old revision of the document!
https://invisible-island.net/ncurses/announce.html
Ncurses ftp://ftp.invisible-island.net/ncurses/ncurses.tar.gz
In Debian, the easiest way to install is with:
sudo apt install libncurses6
To build from source, get the latest version from the download page.
# Download ncurses wget ftp://ftp.invisible-island.net/ncurses/ncurses.tar.gz # Extract tar xzf ncurses.tar.gz # Enter the directory cd ncurses-6.3 # Typical build steps ./configure --help | less # Set to install in home rather than system ./configure --prefix=$HOME/.local --with-shared make make install
The man pages with API documentation will be in ~/.local/share/man/
if you used the home prefix.
If you install to your home rather than the system, when compiling, linking, and running, you may need to specify where the header files and libraries are. With gcc
, that's the -I
and -L
options. When running, set the environment variable LD_LIBRARY_PATH
to include path to libraries. It comes with a helper function useful for these tasks, ncurses6-config
which will be in ~/.local/bin/
if you used the home prefix.
ncurses6-config --libs # -L/home/dano/.local/lib -lncurses ncurses6-config --cflags #-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/home/dano/.local/include/ncurses -I/home/dano/.local/include