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

Error installing go-sqlite3 on Ubuntu LTS 12.04 #81

Closed
egmolina opened this issue Sep 9, 2013 · 5 comments
Closed

Error installing go-sqlite3 on Ubuntu LTS 12.04 #81

egmolina opened this issue Sep 9, 2013 · 5 comments

Comments

@egmolina
Copy link

egmolina commented Sep 9, 2013

I am getting the following error while installing go-sqlite3:

sudo go get github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

sqlite3.go:138[/tmp/go-build724017084/github.com/mattn/go-sqlite3/_obj/sqlite3.cgo1.go:106]: function ends without a return statement
sqlite3.go:161[/tmp/go-build724017084/github.com/mattn/go-sqlite3/_obj/sqlite3.cgo1.go:130]: function ends without a return statement

@DisposaBoy
Copy link

You probably need to update your Go version. Also, please never installing any go packages with sudo

@egmolina
Copy link
Author

egmolina commented Sep 9, 2013

This is the go version I have: go version go1 (from command go version).
What version do you suggest me to install?

@DisposaBoy
Copy link

I imagine most people have updated to 1.1.2 by now. Unfortunately the packages in the Ubuntu repos are very old. I personally just download the tarballs from the download page https://code.google.com/p/go/downloads/list and extract it locally . Other build from source.

@egmolina
Copy link
Author

egmolina commented Sep 9, 2013

I really appreciate your quick response. I'll try updating go to a newest version and then I'll let you know the result of that.

@egmolina
Copy link
Author

egmolina commented Sep 9, 2013

Fix it. Thanks.

@egmolina egmolina closed this as completed Sep 9, 2013
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