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