How to install run and use Rust in windows 10

rustc --version '’ is not recognized as an internal or external command,
operable program or batch file.

1 Like

The $ symbolizes the prompt (the bash prompt, in particular). It’s not a part of the command. You are just supposed to write rustc --version

1 Like

Dear still same error :pensive:

\Documents>rust --version
’rust’ is not recognized as an internal or external command,
operable program or batch file.

\Documents>rust --version
’rust’ is not recognized as an internal or external command,
operable program or batch file. :disappointed:

It is rustc not just rust, like:

\Documents> rustc --version

Thank You, :slight_smile:

Thank you, :slight_smile:

sorry

mkdir ~/projects cd ~/projects
mkdir hello_world cd hello_world

how to write all of the above lines in windows on Rust ???

You can use PowerShell on Windows, which has aliases set up to work similar to the unix command. Then all those commands Should Just Work™.

i get an ssl error when i added the dependency in cargo.toml file how to solve this.

error: could not exec the linker link.exe: The system cannot find the file specified. (os error 2)
PS C:\projects\hello_world>
kindly tell me how to fix it???

Are you using MSVC version? you need VC++ build tools (http://go.microsoft.com/fwlink/?LinkId=691126). I think using mingw version is the simplest one when you want to learn rust (https://static.rust-lang.org/dist/rust-1.7.0-x86_64-pc-windows-gnu.msi).

Thank you So much, :slight_smile:

It worked for me, thanks