Skip to main content

How to install Rust on WSL Ubuntu 20.04 on Windows 10

Recently I have installed WSL1 on my Windows 10 (1909) laptop and wanted to try Rust compiler on Ubuntu 20.04. but I have issue with installation. So this GitHub link is working fine.


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


info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/myubu/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

  /home/myubu/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/myubu/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile file located at:

  /home/myubu/.profile

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-06-18, rust version 1.44.1 (c7087fe00 2020-06-17)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'clippy'
info: installing component 'rust-docs'
 12.2 MiB /  12.2 MiB (100 %) 649.6 KiB/s in 21s ETA:  0s
info: installing component 'rust-std'
 17.7 MiB /  17.7 MiB (100 %)  11.2 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 60.3 MiB /  60.3 MiB (100 %)   8.4 MiB/s in  7s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable'

  stable installed - rustc 1.44.1 (c7087fe00 2020-06-17)


Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell run source $HOME/.cargo/env


Comments

Popular posts from this blog

Unable to launch IPMI with Java version 1.8.131

I have issue with launching IPMI after java JRE version update 1.8.131. "Error: unsigned application requesting unrestricted access to system the following resource is signed with a weak signature algorithm MD5withRSA and is treated as unsigned" The resolution is you can comment out java.security under C:\Program Files\Java\jre1.8.0_131\lib\security #jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024 you will able to launch JNLP file without issue.

Fixing Acer Aspire Z3-605 All-in-one speaker buzzing noise - Part 1

 My Acer Aspire Z3-605 AIO PC speaker has buzzing noise. So I decided to replace the speaker. Unscrew 8 screw from the back side. Total 8 screw at back side Pry up starting from below silver color area. Take out speaker You can see the vibrating membrane or sound film has melted. I search in ebay and the price is about USD $19. So I decided to open and see whether I can just replace the speaker only.  The size of the speaker is 24mm diameter and 10mm thickness. I don't see any label or model no on the back side. I search in google about the wattage of the speaker found it's 3 watts. Then I measured with multimeter and it's 4 ohm. So I searched in China site and found the speaker about SGD $2.  So I just purchased 2 pieces and approximately 2 weeks time to reach to Singapore.  To be continued