Mac的Clickhouse安装失败:“不支持AppleClang,应从brew安装clang。”

时间:2020-10-23 09:57:05

标签: macos cmake clang clickhouse

我正在关注此instructions。 当我运行以下命令时

cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang`

我遇到此错误:

CMake Error at cmake/tools.cmake:20 (message):
  AppleClang is not supported, you should install clang from brew.
Call Stack (most recent call first):
  CMakeLists.txt:44 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/myuser/ClickHouse/build/CMakeFiles/CMakeOutput.log".

有什么想法吗?

Apple clang版本12.0.0(clang-1200.0.32.21)

cmake版本3.18.4

macOs Catalina 10.15.7

谢谢!

1 个答案:

答案 0 :(得分:-1)

我再次安装了clang并成功了。关注了此https://embeddedartistry.com/blog/2017/02/24/installing-llvm-clang-on-osx/