본문 바로가기
Etc

[Go] Go 설치 for Mac

by guru_k 2021. 12. 9.
728x90
반응형
SMALL

Go 설치하기

https://go.dev/doc/install 에서 Mac용 설치 파일을 다운로드.

다운로드한 파일을 클릭 후 설치 진행.

설치 완료 후 go 명령어를 사용해서 버전 확인.

$go version
go version go1.17.2 darwin/amd64

 

brew를 통해 설치

brew install go 를 통해 go 설치

$brew install go
==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.17.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:cc6b0bff088b30b80afad3be3519af192e515d83c8928262114ca07e9bf34bd8
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:cc6b0bff088b30b80afad3be3519af192e515d83c8928262114ca07e9bf34bd8?se=2021-12-09T08%3A10%3A00Z&s
######################################################################## 100.0%
==> Pouring go--1.17.2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/go/1.17.2: 10,814 files, 565.8MB

설치된 go 폴더를 /usr/local/bin 하위에 복사

$ cp -r /usr/local/Cellar/go/1.17.2 /usr/local/bin/go

동작 확인

$go version
go version go1.17.2 darwin/amd64
728x90
반응형
LIST

댓글0