Microsoft MVP성태의 닷넷 이야기
오류 유형: 741. Failed to find the "go" binary in either GOROOT() or PATH [링크 복사], [링크+제목 복사],
조회: 16246
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... 136  137  138  139  140  141  142  143  [144]  145  146  147  148  149  150  ...
NoWriterDateCnt.TitleFile(s)
1487정성태8/27/201332774개발 환경 구성: 195. 로컬 PC에서의 WCF 통신을 Fiddler로 보는 방법 [1]
1486정성태8/27/201330333.NET Framework: 381. SqlCommand를 이용해 Microsoft SQL 서버의 쿼리 실행 계획을 구하는 방법파일 다운로드1
1485정성태8/26/201333819.NET Framework: 380. 프로세스 스스로 풀 덤프 남기는 방법 [3]파일 다운로드1
1484정성태8/23/201328167제니퍼 .NET: 24. 제니퍼 닷넷 적용 사례 (4) - GZIP 인코딩으로 인한 성능 하락
1483정성태8/23/201328247.NET Framework: 379. System.IO.MemoryStream, ArraySegment<T> 의 효율적인 사용법 [1]
1482정성태8/23/201321730.NET Framework: 378. Java / C# - 정수의 부호 유무에 따른 16진수 문자열 변환
1481정성태8/22/201322650오류 유형: 184. PaaS 유형(Cloud Services)의 Azure VM에 연결할 때 계정 만료 에러가 발생하는 경우
1480정성태8/22/201338917개발 환경 구성: 194. 윈도우 서버의 80 포트에 대한 port forwarding 설정 방법파일 다운로드1
1479정성태8/14/201326500오류 유형: 183. IIS - 바인딩 추가 시 Object reference not set to an instance of an object 오류 [5]
1478정성태8/14/201329780오류 유형: 182. 윈도우 정품 활성화 오류 - 0x80070426
1477정성태8/14/201328691VC++: 71. codeplex의 Project Austin - 실감나게 책장 넘기는 표현
1476정성태8/13/201337080디버깅 기술: 55. Windbg - 윈도우 핸들 테이블 (2)
1475정성태8/12/201335575.NET Framework: 377. 프로세스가 종료된 후에도 소켓이 살아있다면?파일 다운로드1
1474정성태8/10/201332420오류 유형: 181. 윈도우 8 - WmiPrvSE.exe 프로세스가 CPU 소비하는 현상
1473정성태8/8/201329152VC++: 70. Win32 socket이 Thread-safe할까? [1]파일 다운로드1
1472정성태8/7/201327586.NET Framework: 376. .NET 2.0의 유니코드 관련 문자열 비교 오류
1471정성태8/7/201331702개발 환경 구성: 193. .aspx 확장자 대신 .html 확장자를 사용하는 방법
1470정성태8/6/201328524오류 유형: 180. DISM.exe 0xc1510111 실행 오류
1469정성태8/6/201325428.NET Framework: 375. System.Net.Sockets.Socket이 Thread-safe할까? [2]파일 다운로드1
1468정성태8/6/201323427오류 유형: 179. IIS - No connection could be made because the target machine actively refused it 127.0.0.1:80
1467정성태8/5/201326898Java: 16. IE에 로드된 Java Applet의 다운로드 위치를 확인하는 방법
1466정성태7/27/201332518.NET Framework: 374. C#과 비교한 C++ STL vector 성능 [7]파일 다운로드1
1465정성태7/18/201335836기타: 33. C:\Windows\Installer 폴더의 용량 줄이기 [3]
1464정성태7/15/201324002오류 유형: 178. Visual Studio 2012 Express - ImportCardinalityMismatchException
1463정성태7/15/201324762오류 유형: 177. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
1462정성태7/5/201328175VC++: 69. geek스러운 C/C++ 퀴즈 문제 [2]
... 136  137  138  139  140  141  142  143  [144]  145  146  147  148  149  150  ...