安装mysql cmake your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found

 CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

解决方法:

yum install gcc-c++

Mysql5.6下的依赖要先安装:

yum  -y install ncurses-devel

yum -y install ncurses

yum -y install openssl-devel
yum  -y install    tcp_wrappers-devel 
yum  -y install    bison-devel

yum  -y install    bison
yum  -y install gcc-c++
yum -y install cmake

 

然后删除CMakeCache.txt,重新执行编译命令即可

你可能感兴趣的:(linux)