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

Install go-sqlite3 still require gcc #441

Closed
kpvt001 opened this issue Jul 20, 2017 · 3 comments
Closed

Install go-sqlite3 still require gcc #441

kpvt001 opened this issue Jul 20, 2017 · 3 comments

Comments

@kpvt001
Copy link

kpvt001 commented Jul 20, 2017

I used

go install github.com/mattn/go-sqlite3

still notice gcc not found

@mattn
Copy link
Owner

mattn commented Jul 21, 2017

dup #175 or #315 or #212

@mattn mattn closed this as completed Jul 21, 2017
@rdslw
Copy link

rdslw commented Aug 19, 2017

@mattn You seems to have constant flow of bugs like this.

I think I found the root cause: it's bad wording on readme.md which confuses users. I forsure was confused :) and saw many others. If I may suggest you should replace paragraph stating:

go-sqlite3 is cgo package. If you want to build your app using go-sqlite3, you need gcc. However, if you install go-sqlite3 with go install github.com/mattn/go-sqlite3, you don't need gcc to build your app anymore.

to this one:

go-sqlite3 is cgo package. If you want to build your app using go-sqlite3, you need gcc. You may uninstall gcc after first time compilation after installing go-sqlite3.a into gopath. You can compile and install go-sqlite3 with command: go install github.com/mattn/go-sqlite3. This means you still need gcc for the initial build, but you can uninstall it afterwards.

@mattn
Copy link
Owner

mattn commented Aug 20, 2017

Could you please send pull-request?

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