Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

exec: "FR": executable file not found in %PATH% #495

Closed
spincon opened this issue Nov 24, 2017 · 2 comments
Closed

exec: "FR": executable file not found in %PATH% #495

spincon opened this issue Nov 24, 2017 · 2 comments

Comments

@spincon
Copy link

spincon commented Nov 24, 2017

Hello,

i am trying to use your package (by the way, thanks you for sharing !) but i have the following error when building:

github.com/mattn/go-sqlite3

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

Do you know what i am missing ?
Regards

@an0rak-dev
Copy link

Hello,

I faced a similar issue with another go library (go-sdl2), and I found a cause for it :
When I run a go build -v -work -x -n, I can see that the library use cgo, which in turn call the C compilation command, by using FR instead of gcc.

FR -I "C:\\Users\\me\\Documents\\Projects\\src\\github.com\\veandco\\go-sdl2\\sdl" -m64 -mthreads ...

I'm still analysing why the cgo executable will change the executable's name, but as a workaround, you can create a copy of your gcc.exe file in your MinGW\bin directory, and rename it FR.exe (ugly, but do the job).

I think that this issue is more related to the use of cgo with MinGW.

Hope that will helps.

@an0rak-dev
Copy link

Hi !

I've got some news for you :)

Your issue is not related to go-sqlite3 but to your Windows/minGW installation. If you check the value of both %CC% and %GCC% in your console, you will probably see that one of those is set to FR.

cgo will use them if they're sets, or use gcc if not (you can see the explanation in this issue : veandco/go-sdl2#317 ).

So you can just unset those environnment vars for fixing this issue.

Hope that will helps.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants