这是错误的重要部分
error: failed to run custom build command for `librocksdb-sys v6.2.4`
Caused by:
process didn't exit successfully: `nearcore/target/debug/build/librocksdb-sys-9223f5cf5557dfe7/build-script-build` (exit code: 101)
--- stderr
rocksdb/include/rocksdb/c.h:65:10: fatal error: 'stdarg.h' file not found
rocksdb/include/rocksdb/c.h:65:10: fatal error: 'stdarg.h' file not found, err: true
thread 'main' panicked at 'unable to generate rocksdb bindings: ()', src/libcore/result.rs:1165:5
如果我缺少某些内容(例如stdarg.h
),有没有办法自动添加它?
答案 0 :(得分:2)
您需要安装llvm
和clang
不幸的是,没有一种方法可以自动检查并包含我所知道的内容。
Near团队应更新相关的Dockerfile,并将一些内容添加到docs.nearprotocol.com
要修复此错误,请运行:
apt install llvm clang
...或...
brew install llvm clang