前言
安装编译polkadot源码时候报错,看了下Clang版本低了,刚开始使用的是yum安装的。
[centos@kaiyuan-test polkadot]$ cargo build --release
Compiling secp256k1 v0.24.2
Compiling librocksdb-sys v0.8.0+7.4.4
error: failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4`
Caused by:
process didn't exit successfully: `/data/polkadot/target/release/build/librocksdb-sys-3093ccca9a1b6120/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at '`libclang` function not loaded: `clang_getTranslationUnitTargetInfo`. This crate requires that `libclang`