Microsoft MVP성태의 닷넷 이야기
오류 유형: 741. Failed to find the "go" binary in either GOROOT() or PATH [링크 복사], [링크+제목 복사],
조회: 15864
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

Failed to find the "go" binary in either GOROOT() or PATH

Go 프로젝트와 관련해서 다음과 같은 식의 각종 오류를 만난다면?

Failed to find the "go" binary in either GOROOT() or PATH(C:\Program Files\...[생략]...).Check PATH, or Install Go and reload the window. If PATH isn't what you expected, see https://github.com/golang/vscode-go/issues/971

Failed to run 'd:\go\bin\go.exe env. The config change may not be applied correctly.

Failed to run 'd:\go\bin\go.exe env' (cwd: D:\temp\mywork): Error: Command failed: d:\go\bin\go.exe env -json GOPATH GOROOT GOPROXY GOBIN GOMODCACHE
go: cannot find GOROOT directory: c:\go

c:\temp\gowork> go env
go: cannot find GOROOT directory: c:\go

Failed to run 'd:\go\bin\go.exe env' (cwd: D:\temp\mywork): Error: Command failed: d:\go\bin\go.exe env -json GOPATH GOROOT GOPROXY GOBIN GOMODCACHE
flag provided but not defined: -json
usage: env [var ...]

Env prints Go environment information.

By default env prints information as a shell script
(on Windows, a batch file).  If one or more variable
names is given as arguments,  env prints the value of
each named variable on its own line.

C:\temp> go version
go: cannot find GOROOT directory: c:\go

크게 고민하지 마시고, 새롭게 최신 버전의 go SDK를 다운로드하시면 모두 해결이 됩니다. 그리고 그냥 다음의 글에 따라 Visual Studio Code 환경으로 구성하는 것도 좋겠고.^^

윈도우 환경에서 Visual Studio Code + Go (Zip) 개발 환경
; https://www.sysnet.pe.kr/2/0/12724




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 7/21/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 196  197  [198] 
NoWriterDateCnt.TitleFile(s)
14정성태7/17/200323027VC++: 4. MFC Message 처리 구조
13정성태7/17/200322718VC++: 3. template 활용의 최고 단계!
12정성태5/7/200620427VC++: 2. void func1( MYCLASS *&pBuildingElement ); 선언의 의미
10정성태7/17/200318944기타: 2. 데브피아 사이트의 클럽 서비스 내에 있는 Standard C++ Research
9정성태7/17/200324326기타: 1. Programming Applications for Microsoft Windows 4th Edition
8정성태7/17/200321735COM 개체 관련: 2. CWindowImpl 의 기본 윈도우 클래스 명을 바꾸려면?
7정성태7/17/200324379VS.NET IDE: 1. VC++ 프로파일링 사용법
4정성태7/17/200336883VC++: 1. C++ 클래스 멤버변수 초기화 [3]
3정성태7/17/200322814스크립트: 2. JScript에서의 Blocking 동작을 막아주는 COM 메서드
2정성태6/14/200641608COM 개체 관련: 1. IWebBrowser2와 IHTMLDocument2의 상호 변환 [2]
1정성태7/17/200325699스크립트: 1. IE 의 훌륭한 저장기능 - userData
... 196  197  [198]