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
+9.2k Golang : Go as a script or running go with shebang/hashbang style
+8.2k Golang : Trim everything onward after a word
+13.9k Golang : Activate web camera and broadcast out base64 encoded images
+9.8k Golang : Populate slice with sequential integers example
+11.7k Use systeminfo to find out installed Windows Hotfix(s) or updates
+7.2k Golang : Get Alexa ranking data example
+11.1k Golang : How to transmit update file to client by HTTP request example
+7.6k Golang : Scanf function weird error in Windows
+18.1k Golang : How to make a file read only and set it to writable again?
+11.8k Golang : Concurrency and goroutine example
+4.8k Mac OSX : Get disk partitions' size, type and name
+5k Which content-type(MIME type) to use for JSON data