操作系统Linux
按照 Substrate官网入门教程编译节点模板
cargo build --release
报错
error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`
root@DESKTOP-8QI2NSA:~/substrate_code/substrate_examples/substrate-node-template# cargo build --release
Compiling tikv-jemalloc-sys v0.4.3+5.2.1-patched.2
Compiling substrate-prometheus-endpoint v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling jsonrpc-http-server v18.0.0
Compiling hyper-rustls v0.22.1
Compiling sp-wasm-interface v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling node-template-runtime v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/runtime)
Compiling libp2p-wasm-ext v0.30.0
Compiling sc-proposer-metrics v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling libp2p v0.40.0
Compiling sc-rpc-server v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sc-peerset v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sc-telemetry v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sp-runtime-interface v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sp-core v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sp-trie v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sp-keystore v0.12.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sc-allocator v4.1.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sp-rpc v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling sc-executor-common v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
Compiling s