본문 바로가기

'o'

[rust] windows10 ERROR

 

 

 

# error : linker `link.exe` not found

1
2
3
4
5
6
7
8
9
10
11
12
error: linker `link.exe` not found
  |
  = note: 지정된 파일을 찾을 수 없습니다. (os error 2)
 
note: the msvc targets depend on the msvc linker but `link.exe` was not found
 
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
 
error: aborting due to previous error
 
 
[Done] exited with code=1 in 0.704 seconds
cs

 https://users.rust-lang.org/t/link-exe-not-found-despite-build-tools-already-installed/47080

 

"link.exe" not found, despite Build Tools already installed

I started following the Rust book, and got stuck when it was time to compile with rustc. I ran the command, and got this error: error: linker `link.exe` not found This apparently happens if the Visual Studio 2019 Build Tools aren't installed, but the thing

users.rust-lang.org

 

 

#visual studio 

https://my.visualstudio.com/Downloads?q=visual%20studio%202019&wt.mc_id=o~msft~vscom~older-downloads 

 

Azure DevOps Services | 로그인

현재 사용자 환경에서 Microsoft Internet Explorer의 보안 강화 구성이 사용하도록 설정되어 있습니다. 이 보안 강화 수준으로 인해 웹 통합 환경이 정상적으로 표시되거나 작동할 수 없습니다. 작업을

app.vssps.visualstudio.com

 

visual studio build tool 다운로드 

 

 

이미 설치되어 있다면, 수정 버튼 클릭 

 

 

c++를 사용한 데스크톱 개발 선택 후 완료 

 

 

 

 

 

-------------------------------------------ubuntu-------------------------------------------

우분투로 rust 설치

https://www.rust-lang.org/tools/install

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

 

https://rinthel.github.io/rust-lang-book-ko/ch01-02-hello-world.html

hello_world 

$ rustc hello_world 

후 error : 

 

 

https://stackoverflow.com/questions/52445961/how-do-i-fix-the-rust-error-linker-cc-not-found-for-debian-on-windows-10

 

# 해결

sudo apt-get update
sudo apt install build-essential

 

 

# cargo error 

https://github.com/rust-lang/cargo/issues/6757

 

해결 vscode close!!  또는 ubuntu 프로그램을 종료 후 cargo build 나 cargo run을 해주면 된다.