Relative Content

Tag Archive for powershellrustwindows-subsystem-for-linuxerror-messaging

Why isn’t the local rust documentation not opening?

I’m on the introduction part of the book The Rust Programming Language. More specifically, I’m trying to install rustup. Since my OS is the 64-bit Windows 11, I had to go to the rustup website for installation. Instead of using the download link, I opted to use the Linux on Windows option (since I already have Ubuntu 22.04.3 running as WSL).
I ran the command rustup doc on Powershell (running as admin). Instead of the doc being open, I got this message:
rustup doc
Opening docs in your browser
error: couldn’t open browser: error spawning command(s) ‘wslview, xdg-open’: No such file or directory (os error 2)
Can someone explain to me why I’m getting this error? How can I solve this?