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.7k PHP : Hide PHP version information from curl
+11.9k Golang : Accurate and reliable decimal calculations
+19.5k Golang : Get ASCII code from a key press(cross-platform) example
+4.5k PHP : How to check if an array is empty ?
+12k Golang : How to check if IP address is in range
+24k Golang : Encrypt and decrypt data with AES crypto
+8.1k Golang : Get login name from environment and prompt for password
+5.8k Android Studio : Rating bar example
+4.3k Facebook : How to force facebook to scrape latest URL link data?
+2.9k Java : Generate multiplication table example
+9k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+4.6k Apt-get to install and uninstall Golang