Search
✔️

250130_1214_m1 맥북에어에 brew, nodejs, go, rust 세팅 방법

1. Homebrew 설치

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

2. 환경변수 설정 (zsh 사용 기준)

Homebrew가 설치된 후 .zshrc에 경로 추가
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc source ~/.zshrc
Plain Text
복사

3. Node.js 설치

brew install node
Plain Text
복사
설치 확인:
node -v npm -v
Plain Text
복사
환경변수 설정 (.zshrc에 추가)
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Plain Text
복사

4. Go 설치

brew install go
Plain Text
복사
설치 확인:
go version
Plain Text
복사
환경변수 설정 (.zshrc에 추가)
echo 'export GOPATH=$HOME/go' >> ~/.zshrc echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.zshrc source ~/.zshrc
Plain Text
복사

5. Rust 설치

brew install rustup rustup-init
Plain Text
복사
설치 확인:
rustc --version cargo --version
Plain Text
복사
환경변수 설정 (.zshrc에 추가)
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Plain Text
복사

6. Git 설정 (사용자 이름 및 이메일)

git config --global user.name "Your Name" git config --global user.email "your.email@example.com"
Plain Text
복사
설정 확인:
git config --global --list
Plain Text
복사

7. 모든 환경변수 적용

source ~/.zshrc
Plain Text
복사

안녕하세요

관련 기술 문의와 R&D 공동 연구 사업 관련 문의는 “glory@keti.re.kr”로 연락 부탁드립니다.

Hello

For technical and business inquiries, please contact me at “glory@keti.re.kr”