linux编译Polardbx的时候报错了,提示:/usr/bin/c++ is not a full path to an existing compiler tool

提问者:帅平 问题分类:数据库
linux编译Polardbx的时候报错了,提示:
CMake Error at CMakeLists.txt:316 (PROJECT):
  The CMAKE_CXX_COMPILER:

    /usr/bin/c++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
1 个回答
踏尽风雪
踏尽风雪
这是因为在/usr/bin目录下没有cc和c++命令,所以这里我们需要把cc和c++命令放到/usr/bin目录下:
ln -s /opt/rh/devtoolset-7/root/usr/bin/gcc /usr/bin/cc
ln -s /opt/rh/devtoolset-7/root/usr/bin/g++ /usr/bin/c++
发布于:8个月前 (09-12) IP属地:四川省
我来回答