oceanbase源码安装

【 使用环境 】ubuntu20.04
【 OB or 其他组件 】
【 使用版本 】oceanbase3.1.0
【问题描述】编译时执行bash build.sh debug --init --make,然后报出如下错误:

– DETECT BUILD ARCH: x86_64
– The CXX compiler identification is unknown
– The C compiler identification is unknown
– The ASM compiler identification is unknown
– Found assembler: /home/tsk/workspace/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - failed
– Check for working CXX compiler: /home/tsk/workspace/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang++
– Check for working CXX compiler: /home/tsk/workspace/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang++ - broken
CMake Error at deps/3rd/usr/local/oceanbase/devtools/share/cmake-3.20/Modules/CMakeTestCXXCompiler.cmake:59 (message):
The C++ compiler

"/home/tsk/workspace/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang++"

is not able to compile a simple test program.

【复现路径】问题出现前后相关操作
【问题现象及影响】

【附件】

3 个赞

要编译源码的话,处理master或者4.x版本吧。

3 个赞

你好,是因为我在看一本书,是按照3.1版本来讲的,所以想装3.1的。请问有什么解决方法吗?

2 个赞

3.x的代码通常是在centos上测试的,你可以装一个centos7.9的虚拟机或者docker环境吗?

3 个赞

好的,谢谢您,我试试centos

2 个赞
yum install git wget rpm* cpio make glibc-devel glibc-headers binutils m4  这些
1 个赞