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

Created on 13 Oct 2017  ·  14Comments  ·  Source: mattn/go-sqlite3

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%

Most helpful comment

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

All 14 comments

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?

image

@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.

https://musl.cc/

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 (or go 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dylanlyu picture dylanlyu  ·  6Comments

hackertron picture hackertron  ·  10Comments

jacentsao picture jacentsao  ·  6Comments

korovkin picture korovkin  ·  12Comments

apertureless picture apertureless  ·  4Comments