mysql8.0编译报错/usr/bin/cc is not a full path to an existing compiler tool.

报错截图

  The CMAKE_C_COMPILER:

    /usr/bin/cc

  is not a full path to an existing compiler tool.

错误原因:

/usr/bin/没有gcc编译器的软连接cc和c++

解决方案:

[root@mysql_8 mysql-8.0.20]# ln -s /usr/local/bin/gcc /usr/bin/cc
[root@mysql_8 mysql-8.0.20]# ln -s /usr/local/bin/g++ /usr/bin/c++

发表评论

后才能评论