Linux MySQL source installation missing Ncurses-devel package

Source: Internet
Author: User
Tags readline

When installing MySQL-5.6.23 with source on red Hat Enterprise Linux Server Release 5.7, you encountered a "remove CMakeCache.txt and rerun CMake. On Debian/ubuntu, package name was Libncurses5-dev, on Redhat and derivates it was ncurses-devel. " Error, as shown below

[Email protected] mysql-5.6.23]# cmake./-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/ Data

.........................

--Check size of wctype_t

--Check size of Wctype_t-done

--Check size of wint_t

--Check size of Wint_t-done

--Could not find Curses (missing:curses_library curses_include_path)

CMake Error at cmake/readline.cmake:85 (MESSAGE):

Curses Library not found. Please install the appropriate package,

Remove CMakeCache.txt and rerun CMake. On Debian/ubuntu, package name was Libncurses5-dev, on Redhat and derivates it was ncurses-devel.

Call Stack (most recent call first):

cmake/readline.cmake:128 (find_curses)

cmake/readline.cmake:202 (Mysql_use_bundled_editline)

cmakelists.txt:409 (Mysql_check_editline)

Follow the error prompts, Debian/ubuntu need to install libncurses5-dev;redhat under need to install Ncurses-devel, check whether the ncurses package is installed, as shown below, NCURSES-5.5-24.20060715 is already installed, but the Ncurses-devel package is missing.

[[email protected] Server] # Rpm-qa | grep ncurses
ncurses-5.5-24.20060715
ncurses-5.5-24.20060715
[[email protected] Server] # ls ncurses*
ncurses-5.5-24.20060715.i386.rpm ncurses-devel-5.5-24.20060715.i386.rpm
ncurses-5.5-24.20060715.x86_64.rpm ncurses-devel-5.5-24.20060715.x86_64.rpm
[[email protected] Server]
Warning:ncurses-devel-5.5-24.20060715.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
########################################### [100%]
########################################### [100%]

After installing the Ncurses-devel package, remove the CMakeCache.txt, then recompile, compile successfully, solve the problem!

[[email protected] mysql-5.6.23]
Rm:remove regular file ' CMakeCache.txt '? Yes
[Email protected] mysql-5.6.23]# CMake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data-ddefault_ Charset=utf8-ddefault_collation=utf8_general_ci-dextra_charsets=all-denabled_local_infile=1

Linux MySQL source installation missing Ncurses-devel package

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.