简体   繁体   English

Solana Rust 在 WSL 上构建 Ubuntu 20.04 导致 Windows 10 出现蓝屏

[英]Solana Rust Build on WSL Ubuntu 20.04 Causes Blue Screen on Windows 10

I am trying to build this project using Rust on WSL.我正在尝试在 WSL 上使用 Rust 构建这个项目 However, after running npm run build:program-rust my computer crashed and showed a BSD (I caused the crash twice to make sure this command was the actual cause).但是,在运行npm run build:program-rust后,我的计算机崩溃并显示 BSD(我导致崩溃两次以确保此命令是实际原因)。

What is the workaround for this issue?这个问题的解决方法是什么?

Thanks to the discussion on this issue I realized I was on WSL 1 (you can check with wsl -l -v )感谢关于这个问题的讨论,我意识到我在 WSL 1 上(你可以用wsl -l -v检查)

I tried migrating my Ubuntu 20.04 instance to WSL 2 by running wsl --set-version <my_distro_name> 2 and it appears to have resolved the Blue Screen issue.我尝试通过运行wsl --set-version <my_distro_name> 2将我的 Ubuntu 20.04 实例迁移到 WSL 2,它似乎已经解决了蓝屏问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM