编译TiKV时提示cargo build的解决方法
问题现象描述
编译TiKV时提示“error: failed to fetch `https://github.com/rust-lang/crates.io-index`”。
关键过程、根本原因分析
这是由于使用了http和https
结论、解决方案及效果
- 在“$HOME/.cargo/config”文件中,添加以下内容。
1 2
[net] git-fetch-with-cli = true
- 重新编译TiKV。
父主题: 故障排除