Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rust: link.exe not found

I installed the rust compiler and also MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.27) (as an individual component) enter image description here

This does not seam to be working.

enter image description here

Does rust require anything more which I have not installed? Thank you in advance.

like image 510
Cool Developer Avatar asked May 22 '26 10:05

Cool Developer


1 Answers

Install the Windows SDK too.

I also didn't want to install all of Visual Studio just to compile rust from the command line.

Based on the info in coder-256's link, I tried running C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat. Then, instead of being unable to find link.exe, I got the error: note: LINK : fatal error LNK1181: cannot open input file 'advapi32.lib'

Searching Stack for that error led to this answer: Install the Windows SDK

So I installed the Windows 10 SDK, and now (after launching a new cmd window) it works.

like image 58
Hydraxan14 Avatar answered May 25 '26 08:05

Hydraxan14



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!