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.1k PHP : How to check if an array is empty ?
+10.9k PHP : Convert(cast) bigInt to string
+27.6k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+10.1k Golang : Convert octal value to string to deal with leading zero problem
+8.4k Golang : Check if integer is power of four example
+12.6k Golang : Forwarding a local port to a remote server example
+8.6k Golang : How to check variable or object type during runtime?
+9k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+27k Golang : Find files by extension
+10.2k Golang : Get login name from environment and prompt for password
+6.6k Golang : Combine slices of complex numbers and operation example
+10.1k CodeIgniter : Load different view for mobile devices