Golang : missing Git command
Problem :
Attempt go get
some package failed because Git is missing.
For example :
go: missing Git command. See http://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in $PATH
Solution :
Your local machine does not have Git installed. Download and install Git from http://git-scm.com/downloads
After installing Git, rerun the go get
command again.
See also : Golang : missing Mercurial command
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+15.2k Golang : Force download file example
+9.4k Random number generation with crypto/rand in Go
+9.1k Golang : Scramble and unscramble text message by randomly replacing words
+17k Golang : Check if IP address is version 4 or 6
+21.4k Golang : Setting up/configure AWS credentials with official aws-sdk-go
+19.6k Golang : How to get own program name during runtime ?
+9.7k Golang : Translate language with language package example
+6.2k Golang : Calculate diameter, circumference, area, sphere surface and volume
+9.3k Golang : Read file with ioutil
+4.5k Chrome : How to block socketloop.com links in Google SERP?
+4.8k Golang : Convert lines of string into list for delete and insert operation
+6.4k Golang : Output or print out JSON stream/encoded data