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
+48.2k Golang : Upload file from web browser to server
+10.8k Golang : Create S3 bucket with official aws-sdk-go package
+14.3k Golang : How to get URL port?
+14.3k Golang : Missing Bazaar command
+20.8k Golang : Sort and reverse sort a slice of strings
+21.3k SSL : How to check if current certificate is sha1 or sha2
+13.9k Golang : Chunk split or divide a string into smaller chunk example
+9.2k Golang : Changing a RGBA image number of channels with OpenCV
+6.9k Golang : Get environment variable
+14.8k Golang : How to check if IP address is in range
+8.2k Golang : How to check if input string is a word?
+10.3k RPM : error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery