[Rust] 'Cannot attach stdlib sources automatically without rustup' 메시지 해결법

이동근·2022년 1월 31일
0

Clion IDE에서 Rust프로젝트를 생성했을 시 상단에 'Cannot attach stdlib sources automatically without rustup'라는 메시지가 나왔다.

확인해보니 rust toolchain 설치 후 cargo프로그램의 path를 환경변수 설정을 하지 않았던게 문제였다.

터미널에 아래 명령어를 입력 후 프로젝트를 생성하면 stdlib의 경로가 제대로 잡힌다.
export PATH="$HOME/.cargo/bin:$PATH"

profile
PompitzGeneral

0개의 댓글