微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

click-house 在 macOS 上安装/构建失败

如何解决click-house 在 macOS 上安装/构建失败

我正在尝试按照以下链接中提供的步骤在我的 macOS (Mojave 10.14.6) 上构建 ClickHouse:https://clickhouse.tech/docs/en/development/build-osx/

当我进入“构建”步骤并调用命令时:cmake .. -DCMAKE_C_COMPILER=brew --prefix llvm/bin/clang -DCMAKE_CXX_COMPILER=brew --prefix llvm/bin/clang++ -DCMAKE_PREFIX_PATH =brew --prefix llvm 我得到以下输出

-- The C compiler identification is Clang 11.1.0

-- The CXX compiler identification is Clang 11.1.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - Failed

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken

CMake Error at /usr/local/Cellar/cmake/3.19.6/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message):
 
The C compiler "/usr/local/opt/llvm/bin/clang" is not able to compile a simple test program.
It fails with the following output: Change Dir: /Users/admin_1/ClickHouse/build/CMakeFiles/CMakeTmp
    
Run Build Command(s):/usr/local/bin/ninja cmTC_c97ee && [1/2] Building C object CMakeFiles/cmTC_c97ee.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_c97ee

Failed: cmTC_c97ee 
: && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLinetools/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_c97ee.dir/testCCompiler.c.o -o cmTC_c97ee   && :
ld: unkNown option: -platform_version
clang-11: error: linker command Failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand Failed.
    
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:29 (project)

-- Configuring incomplete,errors occurred!

See also "/Users/admin_1/ClickHouse/build/CMakeFiles/CMakeOutput.log".

See also "/Users/admin_1/ClickHouse/build/CMakeFiles/CMakeError.log".

知道如何解决这个问题吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。