JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 186 forks source link

error: failed to run custom build command for `librocksdb-sys v6.11.4` #460

Closed stojanov-igor closed 2 years ago

stojanov-igor commented 2 years ago

I am getting the following error on M1 chip.

` The following warnings were emitted during compilation:

warning: couldn't execute llvm-config --prefix (error: No such file or directory (os error 2)) warning: set the LLVM_CONFIG_PATH environment variable to the full path to a valid llvm-config executable (including the executable itself)

error: failed to run custom build command for librocksdb-sys v6.11.4

Caused by: process didn't exit successfully: /Users/igorstojanov/code/github-JK-lab/recipes/target/debug/build/librocksdb-sys-3cf225eb36eec98d/build-script-build (exit status: 101) --- stdout cargo:warning=couldn't execute llvm-config --prefix (error: No such file or directory (os error 2)) cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid llvm-config executable (including the executable itself)

--- stderr thread 'main' panicked at 'libclang error; possible causes include:

mbouzas commented 2 years ago

Hi @JosephKnecht-lab , Can you try : cargo update -p librocksdb-sys

hqwangningbo commented 2 years ago

@mbouzas Thank you for your advice 👍

stojanov-igor commented 2 years ago

Updating to a new version worked. Thanks