Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Windows: "gcc": executable file not found in %PATH% #467

Closed
mrichman opened this issue Oct 13, 2017 · 15 comments
Closed

Windows: "gcc": executable file not found in %PATH% #467

mrichman opened this issue Oct 13, 2017 · 15 comments

Comments

@mrichman
Copy link

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%

@olivierflowerror
Copy link

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

@mrichman
Copy link
Author

@opoppe Which of these settings is correct?

image

@olivierflowerror
Copy link

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

gjrtimmer added a commit to gjrtimmer/go-sqlite3 that referenced this issue May 26, 2018
Compile Section Closes mattn#175
Compile Section Closes mattn#201
Compile Section Closes mattn#206
Compile Section Closes mattn#404
Compile Section Closes mattn#217
Compile Section Closes mattn#224
Compile Section Closes mattn#234
Compile Section Closes mattn#242
Feature table Closes mattn#255
Description Section Closes mattn#232
Golang:1.6 not supported Closes mattn#272
Golang:1.5 not supported + compilation section Closes mattn#283
usleep Implemented Closes mattn#285
FAQ Section Closes mattn#289
Compile Section closes mattn#295
FAQ Section Closes mattn#305
PR339 Closes mattn#318 mattn#321
Compilation Section Closes mattn#341
PR407 Closes mattn#364
Feature `sqlite_vtable` Closes mattn#393
Compile Section Closes mattn#416
sqlite_trace feature Closes mattn#433
Compilation Section Closes mattn#435
Compilation Section Closes mattn#443
Golang:1.6 Not Supported Closes mattn#445
Compilation Section Closes mattn#451
Compilation Section Closes mattn#467
Compilation Section Closes mattn#491
Compilation Section Closes mattn#495
Compilation Section Closes mattn#505
Compilation Section Closes mattn#557
Compilation Section Closes mattn#560
@mattn mattn closed this as completed in c9394b1 May 27, 2018
@nbxtruong
Copy link

This one's for you @mrichman
http://tdm-gcc.tdragon.net/download

@mattn
Copy link
Owner

mattn commented Jan 16, 2020

I suggest this one.

https://musl.cc/

@mrichman
Copy link
Author

I haven't used Windows since May 2018, but thank you for replying :) I'm sure someone can benefit.

@mikelee1
Copy link

save my day

@boddumanohar
Copy link

choco install mingw

@GundamDweeb
Copy link

choco install mingw

This worked for me on Windows 10

@jackios
Copy link

jackios commented Mar 16, 2021

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

@rittneje
Copy link
Collaborator

@jackios What do you see if you run where gcc?

@jackios
Copy link

jackios commented Mar 17, 2021 via email

@salatieltiel
Copy link

This video should help you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests