10.16. Ncurses-5.5 64 Bit

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-x86_64-Multilib

### Chapter 10. Installing Basic System Software

- Prev

  Ncurses-5.5 32 Bit Libraries

- Next

  Procps-3.2.6 32 Bit Libraries

- Up.
- Home

# 10.16. Ncurses-5.5 64 Bit

The Ncurses package contains libraries for terminal-independent handling of character screens.

## 10.16.1. Installation of Ncurses

Prepare Ncurses for compilation:

    CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
       ./configure --prefix=/usr --libdir=/lib64 \
       --with-shared --without-debug

Compile the package:

    make

This package does not come with a test suite.

Install the package:

    make install

Move the Ncurses static libraries to the proper location:

    mv -v /lib64/lib{panel,menu,form,ncurses,ncurses++,curses}.a /usr/lib64

Create symlinks in `/usr/lib64:`

    rm -v /lib64/lib{ncurses,menu,panel,form,curses}.so
    ln -svf ../../lib64/libncurses.so.5 /usr/lib64/libncurses.so
    ln -svf ../../lib64/libncurses.so.5 /usr/lib64/libcurses.so
    ln -svf ../../lib64/libmenu.so.5 /usr/lib64/libmenu.so
    ln -svf ../../lib64/libpanel.so.5 /usr/lib64/libpanel.so
    ln -svf ../../lib64/libform.so.5 /usr/lib64/libform.so

Give the Ncurses libraries execute permissions:

    chmod -v 755 /lib64/lib{panel,menu,form,ncurses}.so.5.5

## 10.16.2. Contents of Ncurses

Installed programs: captoinfo (link to tic), clear, infocmp, infotocap (link to tic), reset (link to tset), tack, tic, toe, tput, and tset
Installed libraries: libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so], libncurses++.a, libncurses.[a,so], and libpanel.[a,so]

### Short Descriptions

captoinfo | Converts a termcap description into a terminfo description
clear | Clears the screen, if possible
infocmp | Compares or prints out terminfo descriptions
infotocap | Converts a terminfo description into a termcap description
reset | Reinitializes a terminal to its default values
tack | The terminfo action checker; it is mainly used to test the accuracy of an entry in the terminfo database
tic | The terminfo entry-description compiler that translates a terminfo file from source format into the binary format needed for the ncurses library routines. A terminfo file contains information on the capabilities of a certain terminal
toe | Lists all available terminal types, giving the primary name and description for each
tput | Makes the values of terminal-dependent capabilities available to the shell; it can also be used to reset or initialize a terminal or report its long name
tset | Can be used to initialize terminals
`libcurses` | A link to `libncurses`
`libncurses` | Contains functions to display text in many complex ways on a terminal screen; a good example of the use of these functions is the menu displayed during the kernel's make menuconfig
`libform` | Contains functions to implement forms
`libmenu` | Contains functions to implement menus
`libpanel` | Contains functions to implement panels

- Prev

  Ncurses-5.5 32 Bit Libraries

- Next

  Procps-3.2.6 32 Bit Libraries

- Up.
- Home.