MySQL数据库CMAKE时报错:-- Configuring incomplete, errors occurred!

  • 错误产生环境:图形化界面Centos7.6下,在CMAKE进行配置时报错
  • 错误提示信息
-- Configuring incomplete, errors occurred!
See also "/opt/mysql-5.7.20/CMakeFiles/CMakeOutput.log".
See also "/opt/mysql-5.7.20/CMakeFiles/CMakeError.log".
  • 解决方法

报错信息提示让查看错误日志,路径已经给出,那就使用VIM编辑器进入查看

vim/opt/mysql-5.7.20/CMakeFiles/CMakeError.log    ## 查看错误日志

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory

截取其中的一段日志,可以看出报错是不能识别.C文件,而这些文件正是C语言编写的程序,所以去检查系统中是否安装了C语言及C++的编译环境,如果没有就进行安装

## 使用命令检查是否安装这两个编译环境:
rpm -q gcc
rpm -q gcc-c++

如果没有安装,把这两个编译器装上就好了:

yum -y install  \
ncurses \
ncurses-devel \
bison \
cmake \
gcc \
gcc-c++

猜你喜欢

转载自blog.csdn.net/u014042047/article/details/107995253