cmake mysql编译错误_[mysql]编译安装报错CMake Error: your C compiler: "CMAKE_C_COMPILE

报错大致都是缺少依赖包,安装这些就差不多了

yum install -y git gcc gcc-c++ ncurses-devel bison

cd mysql-5.6.27

cmake .

-DCMAKE_INSTALL_PREFIX=/usr/local/mysql

-DMYSQL_DATADIR=/mysql/data

-DDEFAULT_CHARSET=utf8

-DDEFAULT_COLLATION=utf8_general_ci

-DWITH_EXTRA_CHARSETS:STRING=all

-DWITH_DEBUG=0  -DENABLED_LOCAL_INFILE=1

-- Running cmake version 2.8.12.2

-- Could NOT find Git (missing:  GIT_EXECUTABLE)

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake 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:27 (STRING):

string sub-command REPLACE requires at least four arguments.

Call Stack (most recent call first):

CMakeLists.txt:149 (INCLUDE)

CMake Error at cmake/os/Linux.cmake:27 (STRING):

string sub-command REPLACE requires at least four arguments.

Call Stack (most recent call first):

CMakeLists.txt:149 (

你可能感兴趣的:(cmake,mysql编译错误)