반응형
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/<User name>/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
https://docs.brew.sh
mac에서 homebrew 설치하려다보면 이런 스텝에 따르라는 내용이 뜨는데
사실 이는 오류가 아닌 다음 단계 두 가지만 더 하라는 것이다.
- 터미널을 열고 다음 명령어를 입력하여 Homebrew를 환경 변수에 추가:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<USER_ID>/.zprofile
여기서 <USER_ID>는 사용자 이름으로 바꿔야 한다.
예를 들어, 사용자 이름이 john이라면:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/john/.zprofile
2. 다음 명령어를 실행하여 현재 세션에 환경 변수를 적용:
eval "$(/opt/homebrew/bin/brew shellenv)"
3. 설정이 완료되면 brew 명령어를 사용가능
brew help
#또는
brew --version
잘 설치됐는지 위 코드 쳐서 확인하자.
반응형