[macOS] homebrew with arm mac (M1 processor)
2021. 9. 11. 11:03ㆍDevelop
ARM 코어 기반 맥에서 발생하는 Homebrew 설치 에러 문제
brew install 000시, 아래와 같은 에러가 발생할 수 있습니다.
brew install hugo
# error occur!
# error example
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
해결 방법 (명령어 추가)
'arch -x86_64' 라는 문구를 명령어 앞에 추가하여 설치 수행 가능
정확한 원인이나, 이러한 옵션들에 대해 잘 이해하진 못했지만, Rosseta 2를 통한 X86_64 호환을 통해 설치 문제를 해결하는것으로 보임
arch -x86_64 brew install hugo
# rosseta2를 통해 설치 정상 수행
간단하게, 설치 정상적으로 수행 됩니다 :)
참고 Ref
- Homebrew installation on ARM MacBook with macOS 11.0 #149: https://github.com/Homebrew/discussions/discussions/149
2021.09.11 -> 2022.02.27
SMALL
'Develop' 카테고리의 다른 글
[DEV] 아무도 물어보지 않은 개발용 맥 사용자 계정 분리의 단점 (0) | 2021.11.16 |
---|