How to install run and use Rust in windows 10


#1

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


#2

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


#3

Dear still same error :pensive:


#4

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


#5

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


#6

It is rustc not just rust, like:

\Documents> rustc --version

#7

Thank You, :slight_smile:


#8

Thank you, :slight_smile:


#9

sorry


#10

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

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


#11

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™.


#12

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


#13

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???


#14

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).


#15

Thank you So much, :slight_smile: