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

GCC still required? #315

Closed
mandolyte opened this issue Jul 7, 2016 · 6 comments
Closed

GCC still required? #315

mandolyte opened this issue Jul 7, 2016 · 6 comments

Comments

@mandolyte
Copy link

mandolyte commented Jul 7, 2016

The readme indicates that I do not need to have gcc installed, but:
$ go get github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

exec: "gcc": executable file not found in %PATH%
$ go install github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

exec: "gcc": executable file not found in %PATH%
$ go version
go version go1.6.1 windows/amd64
$

@mattn
Copy link
Owner

mattn commented Jul 8, 2016

please show me your go env

@mandolyte
Copy link
Author

$ go install github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

exec: "gcc": executable file not found in %PATH%
$ go env
set GOARCH=amd64
set GOBIN=C:\Users\210019484\Workspace/bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\210019484\Workspace
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
$

@mattn
Copy link
Owner

mattn commented Jul 9, 2016

As your go env said, your environment require gcc. If you set environment CC, you may be possible to do you want.

@mattn mattn closed this as completed Jul 9, 2016
@Yashiroo
Copy link

Is it possible to clarify what is to be changed in the CC go env variable in order for this to install? I'm trying to go get this package and it's showing me the same error at the first comment, except i have go 1.5.3

@mattn
Copy link
Owner

mattn commented Oct 18, 2016

you need to install gcc.

@Yashiroo
Copy link

Sorry, my bad.
GCC is already available in MinGW64, i just had to add the directory to the path (MinGW64\bin)

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

3 participants