I am trying to install go-sql-driver on Windows Vista but I am having problems with GOPATH
.
I installed git as suggested and added GOPATH
as a new user environment in Windows with path C:/users/A/desktop/go
.
I ran go get github.com/go-sql-driver/mysql
in the command line but it gives me this error:
C:\>go get github.com/go-sql-driver/mysql
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%
When I go look at http://golang.org/s/gogetcmd it merely says download git. But it is already downloaded in my machine.
I also went ahead and created a new environement variable for PATH
and set its path to the directory where git was installed but that did not help either.
What am I doing wrong?