上次 RocksDB 版本升级后无法编译 nearcore 项目
Can't compile nearcore project after last RocksDB version bump
以下是错误的重要部分
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
),有没有办法自动包含它?
您需要安装 llvm
和 clang
不幸的是,据我所知,没有一种方法可以自动检查并包含它。
Near 团队应更新相关的 Dockerfile 并向 docs.nearprotocol.com
添加一些内容
to fix this error run:
apt install llvm clang
... or ...
brew install llvm clang
以下是错误的重要部分
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
),有没有办法自动包含它?
您需要安装 llvm
和 clang
不幸的是,据我所知,没有一种方法可以自动检查并包含它。
Near 团队应更新相关的 Dockerfile 并向 docs.nearprotocol.com
添加一些内容to fix this error run:
apt install llvm clang
... or ...
brew install llvm clang