티스토리 뷰

Skills/Pythons

[macOS] Homebrew 설치

미남잉 2023. 3. 8. 17:29
728x90

 

리눅스 환경의 macOS에서 패키지를 관리해줄 수 있는 라이브러리 같습니다.

 

 

brew install <package>를 해보려니

bash: brew: command not found

이란 오류 메시지가 뜸

 

해결 방법

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

 

해당 명령어를 실행해주니 brew가 실행됩니다.

 

따라서

brew install wget

brew install python3

 

등을 통해 필요한 패키지를 설치하였습니다.

 

참고:

https://brew.sh/

https://docs.brew.sh/Installation

 

+) 추가 오류

Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1

이란 오류가 발생하면

export HOMEBREW_CORE_GIT_REMOTE="https://github.com/Homebrew/homebrew-core.git"
export HOMEBREW_BREW_GIT_REMOTE="https://github.com/Homebrew/brew.git"

원격 저장소를 명시해주는 것으로 해결

728x90
댓글