728x90
1. homebrew 설치
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. homebrew 환경 설정
설치가 완료되면 다음과 같은 에러가 뜬다.
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.
이때 Next steps 를 따라가보면 아래와 같이 입력하라는 안내가 되어 있다.
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/gayeong/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
아래 방법으로 진행하면 된다.
사용자 이름은 Users 폴더에서 ls 했을 때 나오는 사용자명을 입력하면 된다.
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/사용자이름/.zprofile
$ source /Users/사용자이름/.zprofile
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'
3. brew 설치 확인
$ brew -v
결과 :
Homebrew 3.6.21
728x90
'OS > Mac(M1)' 카테고리의 다른 글
[mac] Oracle 포트 번호 죽이기 (0) | 2023.08.23 |
---|---|
[mac m1] 이클립스.app 이 실행 안 될 때 (eclipse.app을 열 수 없습니다) (0) | 2023.08.23 |
[Mac, M1] Mac 에서 Eclipse 하나 더 띄우기 (0) | 2023.08.23 |
맥 유저 개발자 초기 세팅 (0) | 2023.08.19 |
[Mac(M1)]맥에서 삼성폰 갤러리 이미지 가져오기 (갤럭시Note9, with Android Studio) (0) | 2023.08.16 |