MySQL Source code compilation

Source: Internet
Author: User

Error 1

- Running cmake version 2.8.11-- Could NOT find Git (missing:  GIT_EXECUTABLE)-- Configuring with MAX_INDEXES = 64U-- The C compiler identification is unknown-- The CXX compiler identification is unknownCMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.CMake Error at cmake/os/Linux.cmake:41 (MESSAGE):  Unsupported compiler!Call Stack (most recent call first):  CMakeLists.txt:162 (INCLUDE)

Workaround:yum install gcc gcc-c++
Error Two:

- Could not find (the correct version of) boost.-- MySQL currently requires boost_1_59_0CMake Error at cmake/boost.cmake:81 (MESSAGE):  You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>  This CMake script will look for boost in <directory>.  If it is not there,  it will download and unpack it (in that directory) for you.  If you are inside a firewall, you may need to use an http proxy:  export http_proxy=http://example.com:80Call Stack (most recent call first):  cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)  CMakeLists.txt:451 (INCLUDE)

Workaround: start the boost library from MySQL 5.7.5 is required
Download MYSQL-BOOST-5.7.12.TAR.G Specify parameters in CMake-dwith_boost=boost/boost_1_59_0/
or directly cmake specified parameters-ddownload_boost=1-dwith_boost=<directory> the system will download BOOST

Error Three:

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)CMake Error at cmake/readline.cmake:64 (MESSAGE):  Curses library not found.  Please install appropriate package,      remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.Call Stack (most recent call first):  cmake/readline.cmake:107 (FIND_CURSES)  cmake/readline.cmake:181 (MYSQL_USE_BUNDLED_EDITLINE)  CMakeLists.txt:479 (MYSQL_CHECK_EDITLINE)

Workaround:yum install Ncurses-devel

After installing the Ncurses-devel package, delete the CMakeCache.txt, then recompile , compile successfully

MySQL Source code compilation

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.