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

这篇具有很好参考价值的文章主要介绍了解决Substrate节点模板编译失败ailed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

操作系统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 sp-state-machine v0.12.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-executor-wasmi v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-executor-wasmtime v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-io v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   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)
   Compiling sp-runtime v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-keystore v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
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

编译成功文章来源地址https://www.toymoban.com/news/detail-546108.html

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 sp-version v5.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-inherents v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-staking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-keyring v6.0.0 (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-executor v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-finality-grandpa v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-session v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-offchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-transaction-pool v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-system-rpc-runtime-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-consensus v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-support v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-block-builder v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-timestamp v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-authorship v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-transaction-storage-proof v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-consensus-slots v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-blockchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sp-consensus-aura v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-transaction-pool-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-client-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   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)
   Compiling sc-state-db v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-tracing v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-transaction-pool v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-basic-authorship v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-network v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-consensus-slots v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-consensus-aura v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-chain-spec v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-informant v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-offchain v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-network-gossip v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-rpc-api v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-finality-grandpa v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-system v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-benchmarking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-transaction-payment v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   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)
   Compiling pallet-randomness-collective-flip v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-executive v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-rpc v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling substrate-frame-rpc-system v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-transaction-payment-rpc-runtime-api v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-timestamp v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-balances v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-template v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/pallets/template)
   Compiling pallet-transaction-payment-rpc v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-session v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling pallet-aura v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling librocksdb-sys v0.6.1+6.28.2
   Compiling pallet-grandpa v4.0.0-dev (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 rocksdb v0.18.0
   Compiling kvdb-rocksdb v0.15.2
   Compiling sc-client-db v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-service v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling sc-cli v0.10.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.19#174735ea)
   Compiling node-template v4.0.0-dev (/root/substrate_code/substrate_examples/substrate-node-template/node)
    Finished release [optimized] target(s) in 3m 37s

到了这里,关于解决Substrate节点模板编译失败ailed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • MAC安装mysqlclient失败,× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─

    问题: 在使用django项目安装mysqlclient时出现以下错误: 解决方案: 1、先去登录brew官网: macOS(或 Linux)缺失的软件包的管理器 — Homebrew 复制以下代码,到mac终端运行: /bin/bash -c \\\"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\\\" 安装好后根据提示运行一下两端

    2024年02月14日
    浏览(40)
  • rust编译出错:error: failed to run custom build command for `ring v0.16.20`

    安装 Visual Studio,确保选择 —.NET 桌面开发、使用 C++ 的桌面开发和通用 Windows 平台开发。 显示已安装的工具链 rustup show 。 然后通过运行更改和设置工具链 rustup default stable-x86_64-pc-windows-msvc 。 另外是想用clion进行调试rust 需要你按下面配置即可解决调试问题 前往| 设置 - 构

    2024年02月09日
    浏览(42)
  • k8s从节点加入主节点[preflight] Running pre-flight checks卡住(已解决)k8s常用问题解决

    部署k8s时,主节点部署成功了,从节点1执行kubeadm join也成功了,从节点2执行kubeadm join一直卡在[preflight] Running pre-flight checks不动! 网上查的资料,不管是时间同步,还是重新生成token都尝试了,结果还是不行。 kubeadm token list 查看token也并没有 过期。 kubeadm token create --ttl 0 -

    2024年02月09日
    浏览(38)
  • Elasticsearch8节点加入集群失败解决方法

    failed to join {cluster-master2}{DDB9zVg8SQ24a0jD7lno2w}{gLNn_SCQTIely-VWU0yOHA}{poc-cluster-master2}………… 在日志里面可以看到,是因为节点之前使用一个UUID加入了集群,现在使用一个新的UUID加入新的集群,这是不允许的。 在 Elasticsearch 集群中,每个节点都有一个唯一的节点标识符,通常被称

    2024年01月21日
    浏览(52)
  • android studio gradle build running慢 卡住不动 失败 原因与解决方式

    主要原因是 gradle 构建时无法从 网络 获取需要的包或库。 将国外库替换为阿里云镜像库。 例如 google 对应的库是 maven { url ‘https://maven.aliyun.com/repository/google’ }

    2024年02月11日
    浏览(84)
  • 【错误记录】Android Studio 编译报错 ( Android Gradle plugin requires Java 11 to run. You are currently using )

    使用 最新版本的 Android Studio 创建应用 , 并执行 , 报如下错误 : 当前使用的 JDK 版本是 1.8 , 将 JDK 升级为 11 版本 ; 先在指定目录 , 安装 JDK 工具 ; 选择 \\\" 菜单栏 | File | Settings \\\" 选项 , 在 \\\" Build, Execution , Deployment | Build Tools | Gradle \\\" 选项中 , 设置 刚才 安装的 JDK 即可 ; 编译通过

    2024年02月10日
    浏览(51)
  • Clion 使用MFC库,本地main方法想run一下失败后的解决方法

    最近在写JNI,打算用java去调 C 或 C++ 去操作操作系统底层的API。MFC编程已经算是一个非常老的技术了。在MFC库中提供了大量的windows-api,故准备写JNI去调用windows底层api。 因为习惯使用Jetbrains家的产品,对于快捷键从Idea系列无缝对接所以选择了 Clion 作为C的编写。 当然这里也

    2024年02月08日
    浏览(40)
  • idea编译thingsboard报错yarn (yarn install) on project ui-ngx: Failed to run task: ‘yarn install‘ failed.

    编译thingsboard源码,在编译ui-ngx模块时编译失败 报错信息如下: 可能是版本不匹配或者依赖问题 检查ui-ngx 下pom的nodejs和yarn版本,确保本地环境版本号与配置一致。 如果上述问题排除,在ui-ngx目录下起一个命令行 运行yarn install命令,如果没有问题,则删除maven repository后找个

    2024年02月11日
    浏览(44)
  • 【RUST】mac m1编译rust项目失败: could not compile `` due to previous error

    2.1 查看clang: 结果如下: 2.2 查看llvm-ar: 结果如下: 2.3 如果没有安装llvm-ar,安装命令如下: 2.4 查看是否安装成功命令: 结果如下: 2.5 重新执行cargo 命令: 执行cargo clean: 执行一次带AR参数的cargo命令(本人执行一次就好了): 如果没有没有报错, 后续就可以使用正常的

    2024年02月07日
    浏览(54)
  • 【bug解决】RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

    进行深度学习的算法模型训练的时候,终端报错: 产生报错的原因可能有两种: 1.模型训练的环境中cudnn,CUDA的版本号不匹配 解决办法:安装对应的cudnn,以及cuda,找到对应的torch框架,进行安装 2.其实问题更加简单,是模型的训练的batch-size训练过大了,调整更小,就可以了

    2024年02月11日
    浏览(62)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包