2021-01-31

Install rust on wsl

I have been trying to install Rust via rustup on a Windows Subsytem for Linux (wsl) as mentioned here.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

which keeps erring to

curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Some SO answers mention using -k/--insecure to get around this, so I executed curl --insecure --proto ... to no avail. Some issues on GitHub mention using export RUST_USE_HYPER=1 pre curling but I didn't do that as I have no idea what that means (or if it works). I also tried downloading rustup-init.sh directly (from https://sh.rustup.rs) and then just running it but it also gives the same error. I haven't yet found a lead on some other way of being able to do this.

How does one install rustup in wsl?

Env:
Windows 10 ver 20H2 WSL ver 1



from Recent Questions - Stack Overflow https://ift.tt/3pxNVmc
https://ift.tt/eA8V8J

No comments:

Post a Comment