go-sqlite3: Windows: "gcc": executable file not found in %PATH%

Running go 1.9.1 on windows/amd64 (Windows 10)

When calling go get github.com/mattn/go-sqlite3 (or go install) I get the following error:

exec: "gcc": executable file not found in %PATH%

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 24
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

choco install mingw

go-sqlite3 is a cgo package, you’re gonna need gcc to compile it. MinGW-w64 should do the trick.

@mrichman Just change the architecture to x86_64 and you should be good to go

choco install mingw

This worked for me on Windows 10

I suggest this one.

https://musl.cc/

@opoppe Which of these settings is correct?

image