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
+11.1k How to test Facebook App on localhost ?
+8.7k Golang : Another camera capture GUI application with GTK and OpenCV
+17.1k Golang : Get number of CPU cores
+28.1k Golang : Move file to another directory
+8.1k Findstr command the Grep equivalent for Windows
+5.8k Golang : Error handling methods
+8.6k Golang : Convert(cast) []byte to io.Reader type
+24.7k Golang : How to validate URL the right way
+5.1k Google : Block or disable caching of your website content
+9k Golang : GMail API create and send draft with simple upload attachment example
+6.2k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
+6.9k Default cipher that OpenSSL used to encrypt a PEM file