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
+3.2k PHP : Hide PHP version information from curl
+4.5k Golang : A simple forex opportunities scanner
+2.5k Golang : Customize scanner.Scanner to treat dash as part of identifier
+10.2k Golang : Get timezone offset from date or timestamp
+3.8k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
+4.9k Prevent Write failed: Broken pipe problem during ssh session with screen command
+7.1k Golang : Get currencies exchange rates example
+3.7k Unix/Linux : Get reboot history or check when was the last reboot date
+34.9k Golang : Marshal and unmarshal json.RawMessage struct example
+4.5k Golang : Null and nil value
+20.2k Golang : Strings to lowercase and uppercase example
+6.7k Golang : Select region of interest with mouse click and crop from image