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
+13.6k nginx: [emerg] unknown directive "ssl"
+6.7k Golang : Scan files for certain pattern and rename part of the files
+2.9k Golang : PGX CopyFrom to insert rows into Postgres database
+10.6k Golang : convert(cast) float to string
+19.2k Golang : Convert date string to variants of time.Time type examples
+12k Golang : Read from buffered reader until specific number of bytes
+7k Prevent Write failed: Broken pipe problem during ssh session with screen command
+14.2k Golang : How to convert(cast) IP address to string?
+14k Golang : Validate hostname
+20.1k SSL : How to check if current certificate is sha1 or sha2
+4.9k Golang : Shuffle array of list