Install ncurses library under Linux system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.