Mysql:no Curses/termcap Library found solution

Source: Internet
Author: User
Tags mysql version

The following error occurred while compiling MySQL:

The code is as follows Copy Code

Checking for tgetent in-ltermcap ... no
Checking for termcap functions Library ... configure:error:No curses/termcap Library found


Installed MySQL version: 5.1.30, after./configure, the following error occurred on make:

Make: * * * No targets specified and no makefile found.

Find relevant information on the Internet and confirm that it is./configure out of the problem, so look back, and found the problem, the last few lines out of the wrong. The complete error message is as follows:

The code is as follows Copy Code

Checking for tgetent in-lncurses ... no

Checking for tgetent in-lcurses ... no

Checking for tgetent in-ltermcap ... no

Checking for tgetent in-ltinfo ... no

Checking for termcap functions Library ... configure:error:No curses/termcap Library found

Error cause Analysis:

Description Curses/termcap Library is not installed, download ncurses-5.6.tar.gz, install:

Solution 1

The code is as follows Copy Code

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
Tar zxvf ncurses-5.6.tar.gz
CD ncurses-5.6
./configure–prefix=/usr–with-shared–without-debug
Make
Make install clean

Solution 2

Download and install the appropriate package

First, if your system is Redhat series, such as CentOS:

The code is as follows Copy Code

Yum List | grep ncurses

Yum-y Install Ncurses-devel

Second, if your system is Ubuntu or Debian:

The code is as follows Copy Code

Apt-cache Search ncurses

Apt-get Install Libncurses5-dev

Pending Installation completed! After that, then./configure, go through, then make && make install, successfully install

Related Article

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.