- Running cmake version 2.8.12.2
-- Could NOT find Git (missing:  GIT_EXECUTABLE) 
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- MySQL 5.6.51
-- Packaging as: mysql-5.6.51-Linux-i686
-- Could NOT find Threads (missing:  Threads_FOUND) 
-- Could NOT find Threads (missing:  Threads_FOUND) 
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/share/cmake/Modules/TestBigEndian.cmake:44 (message):
  no suitable type found
Call Stack (most recent call first):
  configure.cmake:728 (TEST_BIG_ENDIAN)
  CMakeLists.txt:468 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/mysql-5.6.51/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/mysql-5.6.51/CMakeFiles/CMakeError.log".

分析

– Could NOT find Git (missing: GIT_EXECUTABLE)这项应该缺少git包,yum install -y git

如果出现下面这些错的原因是:

– The C compiler identification is unknown

– The CXX compiler identification is unknown 这两项缺少gcc和gcc-c++的包,yum install -y gcc gcc-c++

另外需要rm -f CMakeCache.txt

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐