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
+6.8k Golang : Get environment variable
+33.5k Golang : Proper way to set function argument default value
+12.6k Swift : Convert (cast) Int to String ?
+13.9k Golang : Send email with attachment(RFC2822) using Gmail API example
+11.8k Golang : Get month name from date example
+8k Golang : How to check variable or object type during runtime?
+11.3k Golang : How to detect a server/machine network interface capabilities?
+9.2k Random number generation with crypto/rand in Go
+4k Javascript : How to show different content with noscript?
+9.6k Golang : Detect number of faces or vehicles in a photo
+5.8k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
+5k Golang : If else example and common mistake