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.
发布于:2年前 (2023-09-12) IP属地:四川省
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++
发布于:2年前 (2023-09-12) IP属地:四川省
我来回答
您需要 登录 后回答此问题!