Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file. (os error 2)”
PS C:\Users\sun\Desktop\runoob-greeting> cd .\greeting
PS C:\Users\sun\Desktop\runoob-greeting\greeting> cargo build
Compiling greeting v0.1.0 (C:\Users\sun\Desktop\runoob-greeting\greeting)
error: linker link.exe
not found|= note: The system could not find the specified file. (os error 2)
note: the msvc targets depend on the msvc linker but link.exe
was not found
The problem occurs in the context of: Rust’s build tools and package management tools – Cargo
Solution.
Install Visual Studio 2019 build tools Visual Studio 2019 build tools or Microsoft Visual Studio. after downloading build tools, in Visual studio installer select only ” C++ build tools”, then select only “MSVC v142 – VS2019 C++ x64/x86 build tools”.
Read More:
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- [Soled] MTPuTTY error: unable to run putty the system cannot find the specified file
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- [Solved] Linux virtual machine startup error: operating system not found
- [Solved] Error: X_LINK_COMMUNICATION_NOT_OPEN or X_LINK_ERROR
- Solved: could not find the task ‘G + + build active file, leetcode algorithm ACM compilation and debugging
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- Error in Linux running file: bash: $’\r’: command not found
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- [Solved] /usr/bin/ld: cannot find crti.o: No such file or directory & /usr/bin/ld: cannot find -lc
- [Solved] Linux Error: ENOSPC: System limit for number of file watchers
- [Solved] failed to start remount root and kernel file system
- [Solved] Ubuntu pyinstaller Error when packaging executable file: … qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in “…
- ERROR: This system does not support “RDRAND“ [How to Solve]
- [Solved] Error: ENOSPC: System limit for number of file watchers reached
- [Solved] ubuntu makefile Cross-compilation error: file not recognized: file format not recognized
- [Solved] Linux Error: Error: ENOSPC: System limit for number of file watchers
- ./ungrib.exe Start Error: Could not Fould libpng16.so.16 (/etc/ld.so.conf and ldconfig)