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
- Update documentation Compile Section Closes #175 Compile Section Closes #201 Compile Section Closes #206 Compile Section Closes #404 Compile Section Closes #217 Compile Section Closes #224 Compile Se... — committed to gjrtimmer/go-sqlite3 by gjrtimmer 6 years ago
- Update documentation Compile Section Closes #175 Compile Section Closes #201 Compile Section Closes #206 Compile Section Closes #404 Compile Section Closes #217 Compile Section Closes #224 Compile Se... — committed to gjrtimmer/go-sqlite3 by gjrtimmer 6 years ago
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
This one’s for you @mrichman http://tdm-gcc.tdragon.net/download
This worked for me on Windows 10
I suggest this one.
https://musl.cc/
@opoppe Which of these settings is correct?