• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

解决Substrate节点模板编译失败ailed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`

武飞扬头像
艾菲爸
帮助1

操作系统Linux

按照 Substrate官网入门教程编译节点模板

cargo build --release

报错

error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3 5.2.1-patched.2`

  1.  
    root@DESKTOP-8QI2NSA:~/substrate_code/substrate_examples/substrate-node-template# cargo build --release
  2.  
    Compiling tikv-jemalloc-sys v0.4.3 5.2.1-patched.2
  3.  
    Compiling substrate-prometheus-endpoint v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  4.  
    Compiling jsonrpc-http-server v18.0.0
  5.  
    Compiling hyper-rustls v0.22.1
  6.  
    Compiling sp-wasm-interface v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  7.  
    Compiling node-template-runtime v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/runtime)
  8.  
    Compiling libp2p-wasm-ext v0.30.0
  9.  
    Compiling sc-proposer-metrics v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  10.  
    Compiling libp2p v0.40.0
  11.  
    Compiling sc-rpc-server v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  12.  
    Compiling sc-peerset v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  13.  
    Compiling sc-telemetry v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  14.  
    Compiling sp-runtime-interface v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  15.  
    Compiling sp-core v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  16.  
    Compiling sp-trie v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  17.  
    Compiling sp-keystore v0.12.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  18.  
    Compiling sc-allocator v4.1.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  19.  
    Compiling sp-rpc v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  20.  
    Compiling sc-executor-common v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  21.  
    Compiling sp-state-machine v0.12.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  22.  
    Compiling sc-executor-wasmi v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  23.  
    Compiling sc-executor-wasmtime v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  24.  
    Compiling sp-io v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  25.  
    Compiling sp-application-crypto v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea) Compiling sp-tasks v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  26.  
    Compiling sp-runtime v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  27.  
    Compiling sc-keystore v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  28.  
    error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3 5.2.1-patched.2`
学新通

记录下解决方法

        安装cmake

apt install cmake

重新编译项目

cargo build --release

编译成功

  1.  
    root@DESKTOP-8QI2NSA:~/substrate_code/substrate_examples/substrate-node-template# cargo build --release
  2.  
    Compiling tikv-jemalloc-sys v0.4.3 5.2.1-patched.2
  3.  
    Compiling sp-version v5.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  4.  
    Compiling sp-inherents v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  5.  
    Compiling sp-staking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  6.  
    Compiling sp-keyring v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  7.  
    Compiling sp-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  8.  
    Compiling sc-executor v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  9.  
    Compiling sp-finality-grandpa v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  10.  
    Compiling sp-session v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  11.  
    Compiling sp-offchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  12.  
    Compiling sp-transaction-pool v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  13.  
    Compiling frame-system-rpc-runtime-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  14.  
    Compiling sp-consensus v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  15.  
    Compiling frame-support v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  16.  
    Compiling sp-block-builder v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  17.  
    Compiling sp-timestamp v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  18.  
    Compiling sp-authorship v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  19.  
    Compiling sp-transaction-storage-proof v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  20.  
    Compiling sp-consensus-slots v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  21.  
    Compiling sp-blockchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  22.  
    Compiling sp-consensus-aura v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  23.  
    Compiling sc-transaction-pool-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  24.  
    Compiling sc-client-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  25.  
    Compiling sc-block-builder v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea) Compiling sc-consensus v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  26.  
    Compiling sc-state-db v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  27.  
    Compiling sc-tracing v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  28.  
    Compiling sc-transaction-pool v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  29.  
    Compiling sc-basic-authorship v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  30.  
    Compiling sc-network v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  31.  
    Compiling sc-consensus-slots v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  32.  
    Compiling sc-consensus-aura v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  33.  
    Compiling sc-chain-spec v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  34.  
    Compiling sc-informant v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  35.  
    Compiling sc-offchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  36.  
    Compiling sc-network-gossip v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  37.  
    Compiling sc-rpc-api v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  38.  
    Compiling sc-finality-grandpa v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  39.  
    Compiling frame-system v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  40.  
    Compiling frame-benchmarking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  41.  
    Compiling pallet-transaction-payment v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  42.  
    Compiling pallet-authorship v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea) Compiling pallet-sudo v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  43.  
    Compiling pallet-randomness-collective-flip v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  44.  
    Compiling frame-executive v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  45.  
    Compiling sc-rpc v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  46.  
    Compiling substrate-frame-rpc-system v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  47.  
    Compiling pallet-transaction-payment-rpc-runtime-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  48.  
    Compiling pallet-timestamp v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  49.  
    Compiling pallet-balances v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  50.  
    Compiling pallet-template v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/pallets/template)
  51.  
    Compiling pallet-transaction-payment-rpc v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  52.  
    Compiling pallet-session v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  53.  
    Compiling pallet-aura v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  54.  
    Compiling librocksdb-sys v0.6.1 6.28.2
  55.  
    Compiling pallet-grandpa v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  56.  
    Compiling node-template-runtime v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/runtime)
  57.  
    Compiling rocksdb v0.18.0
  58.  
    Compiling kvdb-rocksdb v0.15.2
  59.  
    Compiling sc-client-db v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  60.  
    Compiling sc-service v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  61.  
    Compiling sc-cli v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  62.  
    Compiling frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
  63.  
    Compiling node-template v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/node)
  64.  
    Finished release [optimized] target(s) in 3m 37s
学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgkigai
系列文章
更多 icon
同类精品
更多 icon
继续加载