我正在尝试使用 Windows 启动一个 solana 项目,当我在 Cmd 上运行 cargo build 时它工作正常,但 cargo build-bpf 我收到错误:
BPF SDK: \\?\C:\Users\HP\.local\share\solana\install\releases\1.9.4\solana-release\bin\sdk\bpf
Can't get home directory path: environment variable not found
所以我尝试安装 wsl 但是当我运行 cargo build 或 cargo build-bpf 时出现错误:
error: `rustc -vV` didn't have a line for `host:`, got: