'Error installing llvm on MacOs High Siera using Brew

I have tried to follow the instruction here but my installation hang on

2d9d78074b6123ce1571c4ff59e3c4f2c9142e0f--poppler-data-0.4.11.tar.gz
==> Downloading https://poppler.freedesktop.org/poppler-21.12.0.tar.xz
Already downloaded: /Users/macbookpro/Library/Caches/Homebrew/downloads/c16ebee699cf7e29800e8a8be3cf4a5e5298e493d1b572f74ee4efdd0713fe7a--poppler-21.12.0.tar.xz
==> Installing vips dependency: llvm
==> cmake -G Unix Makefiles .. -DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldb;mlir;poll
==> cmake --build .

Actually I am trying to install vips

brew install vips


Solution 1:[1]

I got around this using the answer from here this. I modified the answer a bit by make sure I did this cmake . -DLLVM_CREATE_XCODE_TOOLCHAIN=On. do? I tried it before this cmake --build . --target install-xcode-toolchain.

and continue with brew install vips. Everything works fine on my MacOs High Siera in which I install Xcode manually since Vips needs either ninja, Xcode or Visual Studio to build.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pensebien