【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【问题现象及影响】
ob_admin安装。
版本 oceanbase-4.0
https://www.oceanbase.com/docs/community-observer-cn-10000000000901083
【附件】
【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【问题现象及影响】
您好,可以尝试在sh build.sh --init默认生成的编译目录build_debug下编译ob_admin
重新执行sh build.sh --init
看你上面执行sh报错了,可以把报错信息发一下
[root@ob34 oceanbase-4.0]# sh build.sh --init
build.sh --init
[dep_create.sh] oceanbase.el7.x86_64.deps has been initialized due to /root/ob_rpm/oceanbase-4.0/deps/3rd/c0065477693b779dbae6e321e8f35338 and /root/ob_rpm/oceanbase-4.0/deps/3rd/DONE exists
[build.sh] use dep_create.sh to create deps cost time: 0m0s
– The CXX compiler identification is Clang 11.0.1
– The C compiler identification is Clang 11.0.1
– The ASM compiler identification is Clang with GNU-like command-line
– Found assembler: /root/ob_rpm/oceanbase-4.0/deps/3rd/usr/local/oceanbase/devtools/bin/clang
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /root/ob_rpm/oceanbase-4.0/deps/3rd/usr/local/oceanbase/devtools/bin/clang++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /root/ob_rpm/oceanbase-4.0/deps/3rd/usr/local/oceanbase/devtools/bin/clang - skipped
– Detecting C compile features
– Detecting C compile features - done
– open source build enabled
– This is BINARY dir /root/ob_rpm/oceanbase-4.0/build_debug
– This is SOURCE dir /root/ob_rpm/oceanbase-4.0
– check deps for libeasy
– This is BINARY dir /root/ob_rpm/oceanbase-4.0/build_debug/deps/oblib
– This is SOURCE dir /root/ob_rpm/oceanbase-4.0/deps/oblib
– oblib_add_library compress
– oblib_add_library zstd
– oblib_add_library zstd_1_3_8
– oblib_add_library lz4
– oblib_add_library snappy
– oblib_add_library zlib
– oblib_add_library restore
– oblib_add_library regex
– ob_lib_add_target oblib_lib
– ob_add_new_object_target ob_malloc_object
– ob_lib_add_target oblib_common
– ob_lib_add_target oblib_rpc
– oblib_extra_objects /root/ob_rpm/oceanbase-4.0/build_debug/deps/oblib/src/lib/compress/zstd/zstd_objs.o;/root/ob_rpm/oceanbase-4.0/build_debug/deps/oblib/src/lib/compress/zstd_1_3_8/zstd_1_3_8_objs.o;/root/ob_rpm/oceanbase-4.0/build_debug/deps/oblib/src/lib/compress/lz4/lz4-all.a.o
– /root/ob_rpm/oceanbase-4.0/deps/3rd
– This is BINARY dir /root/ob_rpm/oceanbase-4.0/build_debug/src/objit
– This is SOURCE dir /root/ob_rpm/oceanbase-4.0/src/objit
– Performing Test LLVM_LIBSTDCXX_MIN
– Performing Test LLVM_LIBSTDCXX_MIN - Success
– Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
– Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
– Performing Test C_SUPPORTS_FPIC
– Performing Test C_SUPPORTS_FPIC - Success
– Performing Test CXX_SUPPORTS_FPIC
– Performing Test CXX_SUPPORTS_FPIC - Success
– Building with -fPIC
– Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
– Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
– Performing Test C_SUPPORTS_WERROR_DATE_TIME
– Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
– Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
– Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
– Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
– Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
– Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
– Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
– Looking for os_signpost_interval_begin
– Looking for os_signpost_interval_begin - not found
– ob_add_new_object_target ob_share
– ob_add_new_object_target ob_sql
– observer_add_target ob_sql_simd
CMake Error at src/sql/CMakeLists.txt:1129 (message):
Generate sql parser failed and check error in
/root/ob_rpm/oceanbase-4.0/src/sql/parser/_gen_parser.error
– Configuring incomplete, errors occurred!
See also “/root/ob_rpm/oceanbase-4.0/build_debug/CMakeFiles/CMakeOutput.log”.
See also “/root/ob_rpm/oceanbase-4.0/build_debug/CMakeFiles/CMakeError.log”.
[build.sh][ERROR] Failed to generate Makefile
这两个log还是找不到么
/root/ob_rpm/oceanbase-4.0/src/sql/parser/_gen_parser.error这个呢
算了 。我改用工具包。不编译了。头疼
单纯使用ob_admin的话是可以使用oceanbase-ce-utils工具包安装的。
当前的编译问题不是ob_admin的问题,是您的OB项目内编译初始化存在问题。
如果不需要编译可以直接使用安装的方式使用。