Skip to content

"No suitable version of LLVM was found system-wide" on MacOS

error: No suitable version of LLVM was found system-wide or pointed
              to by LLVM_SYS_100_PREFIX.
       
              Consider using `llvmenv` to compile an appropriate copy of LLVM, and
              refer to the llvm-sys documentation for more information.
       
              llvm-sys: https://crates.io/crates/llvm-sys
              llvmenv: https://crates.io/crates/llvmenv
   --> /Users/davidwong/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-100.2.3/src/lib.rs:483:1
    |
483 | / std::compile_error!(concat!(
484 | |       "No suitable version of LLVM was found system-wide or pointed
485 | |        to by LLVM_SYS_", env!("CARGO_PKG_VERSION_MAJOR"), "_PREFIX.
486 | |
...   |
490 | |        llvm-sys: https://crates.io/crates/llvm-sys
491 | |        llvmenv: https://crates.io/crates/llvmenv"));
    | |___________________________________________________^

error: could not compile `llvm-sys` due to previous error