Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Homebrew에서 M1과 intel의 패키지 파일 경로차이로 생기는 문제점 #7

Open
samsung-ga opened this issue May 25, 2022 · 0 comments

Comments

@samsung-ga
Copy link
Owner

samsung-ga commented May 25, 2022

에러 상황

  • Intel에서 brew install swiftlint 로 설치가 되었다면, M1에서는 같은 명령어를 입력하였을 때 아래와 같은 에러가 나온다.
# ❎ 에러
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

해결

  • Intel과 M1에서 homebrew가 패키지를 설치하는 폴더경로가 다르기 때문에 나오는 문제이다.
  • 해결방안은 위 에러결과에서도 나오는데 arch -arm64 brew install [패키지명]을 입력하면 된다.
  • stackoverflow에서는 Rosetta2를 설치하여야 위 명령어가 실행된다고 하는데, 이 과정을 하지 않아도 잘 실행이 된다.
  • 만약, 실행이 안된다면 참고해보면 좋을듯.

스크린샷 2022-05-25 오후 12 48 41

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant