티스토리 뷰
반응형
환경 | MacBook Pro(2019), Ventura 13.0
Rust를 처음 배울 때, rustc 를 활용한 Hello World 애플리케이션의 컴파일이 다음과 같이 실패할 수 있다.
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-arch" "x86_64" "-m64" ... 중략
...
= note: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: aborting due to previous error
당황하지 말고 필요한 것들을 설치하자
[~] xcode-select --install
이제 잘 된다!
[~] rustc main.rs
[~] ./main
Hello world!
[~]
참고
Can not compile a simple Rust program on MacOS
Today I decided to learn Rust, however I tried to compile a simple "hello world" program but I get this error: fn main() { println!("Hi"); } error: linking with `cc` failed...
stackoverflow.com
'Dev.' 카테고리의 다른 글
[IntelliJ] 정규표현식으로 한글이 포함된 부분 검색하기 (0) | 2023.04.11 |
---|---|
[IntelliJ] macOS 기준 여러 줄 선택하기 (멀티커서) (0) | 2023.01.03 |
[짧] DTO, VO (0) | 2022.07.08 |
[Dev] 동기 / 비동기, 블로킹 / 논블로킹 (짧) (0) | 2022.05.31 |
[WebStorm] Node.js에 대한 코딩 지원이 비활성화되었습니다. (0) | 2022.05.11 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Puppeteer
- hashicorp
- Node.js
- react
- Vault
- RancherDesktop
- jQuery
- mysql
- AWS
- shell
- Linux
- kotlin
- spring boot
- etc
- eureka
- Spring Cloud Config
- 코딩테스트
- JPA
- Java
- Docker
- Database
- JEST
- postgresql
- pgloader
- IntelliJ
- terraform
- javascript
- Git
- Gradle
- AWS IoT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
글 보관함