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%
go-sqlite3 is a cgo package, you're gonna need gcc to compile it.
MinGW-w64 should do the trick.
@opoppe Which of these settings is correct?

@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
I suggest this one.
I haven't used Windows since May 2018, but thank you for replying :) I'm sure someone can benefit.
save my day
choco install mingw
choco install mingw
This worked for me on Windows 10
Running go 1.9.1 on windows/amd64 (Windows 10)
When calling
go get github.com/mattn/go-sqlite3(orgo install) I get the following error:
exec: "gcc": executable file not found in %PATH%
I hava installed gcc but still take place this problem
@jackios What do you see if you run where gcc?
------------------ 原始邮件 ------------------
发件人: "mattn/go-sqlite3" @.>;
发送时间: 2021年3月17日(星期三) 凌晨0:28
*@.>;
@.@.*>;
主题: Re: [mattn/go-sqlite3] Windows: "gcc": executable file not found in %PATH% (#467)
@jackios What do you see if you run where gcc?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Most helpful comment
go-sqlite3 is a cgo package, you're gonna need gcc to compile it.
MinGW-w64 should do the trick.