鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

编译TiKV时提示cargo build的解决方法

问题现象描述

编译TiKV时提示“error: failed to fetch `https://github.com/rust-lang/crates.io-index`”。

关键过程、根本原因分析

这是由于使用了http和https 代理

结论、解决方案及效果

  1. “$HOME/.cargo/config”文件中,添加以下内容。
    1
    2
    [net]
    git-fetch-with-cli = true
    
  2. 重新编译TiKV。