The ncurses library is a library of functions for graphics support under a Linux system, a character terminal processing library, including panels and menus.
Today, when installing the ncurses library, we encountered some problems, which are as follows:
First of all: the installation of the use of the source package is installed, and there is no direct use of a key command way, not the source package installation method has a lot of cool, but it is my virtual machine is not connected to the outside network.
1, download ncurses Library source code compression package
Everyone can go to this website download: http://ftp.gnu.org/pub/gnu/ncurses/
Version of the new and old difference is not big, this time I chose the ncurses-5.6 version
2. Copy the ncurses compressed package to our Linux native directory
cp/mnt/hgfs/winshare/ncurses-5.6.tar.gz/bin/
3, enter into our/bin directory, unzip the package
Cd/bin
Tar-xzf ncurses-5.6.tar.gz
4. Enter the ncurses-5.6 directory
CD ncurses-5.6
5. Configuration
I had a lot of problems in this place before, because this configuration problem caused the subsequent compilation to pass.
Configuration Mode 1: (This way causes make compile pass in my case)
./configure
Make compilation error:
/bin/sh:-I.. /c++: No file or directory
MAKE[1]: * * * [.. /OBJECTS/CURSESF.O] Error 127
MAKE[1]: Leaving directory '/root/ncurses-5.9/c++ '
Make: * * * [ALL] Error 2
have been stuck here before, and then go online to find some information, and later got the solution, refer to: http://blog.csdn.net/m_vptr/article/details/8639565, the configuration method is as follows
Configuration Mode 2:
./configure--without-cxx
Make compile to go through the
6. Make Compile
Make
7. Installation
Make install
After the above is generally done, you can also test whether it can be used.
Install ncurses library under Linux system