#include <bits/stdc++.h>가 인식이 안되서 brew로 gcc를 설치하려고 보니 인텔 homebrew여서 안된다는 에러가 나왔다.
나는 분명 brew를 설치했는데 찾아보니 apple silicon natvie로 brew가 따로 있었다. 링크
읽기 귀찮다면
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa/raw/48f48f7fef21abb308e129a80b3214c2538fc611/homebrew_m1.sh)"
명령어를 입력하면 된다.
혹시 나처럼 미리 brew를 설치한 상태라면
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
위의 명령어를 입력해서 인텔 brew를 제거한 뒤 m1 native brew를 설치하도록 하자. 아니면 path 설정을 다시 해줘야한다.
댓글 영역