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