Mac CommandLineTools 설치와 오류 해결 방법 – xcode-select: error: command line tools are already installed, use “Software Update” to install updates

Mac CommandLineTools 설치와 already installed 오류 해결방법

Mac CommandLineTools을 설치하기 위해서는 기본적으로 Xcode 설치가 되어있어야 합니다. Xcode 설치는 이 문서를 참고하면 빠르게 설치가 가능합니다.

Xcode 설치가 되어있음을 가정하고 Mac CommandLineTools 설치와 오류 해결을 진행하겠습니다.

Mac CommandLineTools 설치 문구

sudo xcode-select --install

을 터미널에 입력하면 설치가 가능합니다. 여기서 설치가 되지 않고 오류가 반환되면 아래를 참고하세요.

Mac CommandLineTools 오류 해결

Mac CommandLineTools 설치 오류

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

해당 오류 문구가 출력 될 경우는 이미 커맨드 라인 툴이 설치가 되어있는 경우입니다. command line tools을 업데이트 하라는 의미인데, 간단하게 터미널을 통해 해당 디렉토리를 완전히 지운 후 재설치합니다.

sudo rm -rf /Library/Developer/CommandLineTools

sudo xcode-select --install

Mac CommandLineTools 재설치

마지막 install을 입력해 주면 ‘명령어 라인 개발자 도구가 필요합니다’ 라는 안내문이 노출됩니다. 설치를 클릭합니다.

Mac CommandLineTools 설치과정

동의를 눌러 커맨드 라인 툴(라인 개발자 도구) 사용권 계약에 동의를 진행하면 자동으로 설치가 진행됩니다.

Mac CommandLineTools 설치완료

xcode-select: error: command line tools are already installed, use “Software Update” to install updates 오류가 정상적으로 해결되었습니다.

같이 보면 좋은 글

https://investechnews.com/mac-xcode-setup/
https://investechnews.com/mac-git-setting/

1 thought on “Mac CommandLineTools 설치와 오류 해결 방법 – xcode-select: error: command line tools are already installed, use “Software Update” to install updates”

댓글 남기기