etc/TIP

[TIP] 맥(MAC)에서 Homebrew 설치 및 오류 해결

TTOWA 2024. 3. 20. 17:06

1. Homebrew 홈페이지: https://brew.sh/

홈페이지 접속하여 메인에 보이는 커맨드 복사하여 설치 합니다. 또는 아래 커맨드를 복사하여 설치 합니다.

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

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

 

2.  설치 했지만 아래처럼 오류 메시지가 나온다면 명령어를 입력 해줍니다.

Warning: /opt/homebrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> 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]/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

 

3.  아래 커맨드를 한줄씩 입력해 줍니다.

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/[user]/.zprofile
 
eval "$(/opt/homebrew/bin/brew shellenv)"

 

위 커맨드에서 /Users/[user]/.zprofile  [ ] 괄호안 user는 사용하는 컴퓨터 마다 다를수 있습니다.

 

4.  설치 확인 

brew --version

 

 


궁금하신게 있으시면 댓글 달아주세요.
이 글이 도움이 되었다면 ♡(공감), 광고 눌러 주세요.

큰 도움이 됩니다.

 

반응형