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

cannot compile on fedora 25 #13

Closed
cpg opened this issue Jul 19, 2018 · 5 comments
Closed

cannot compile on fedora 25 #13

cpg opened this issue Jul 19, 2018 · 5 comments
Assignees

Comments

@cpg
Copy link
Member

cpg commented Jul 19, 2018

i cannot seem to be able to build this client on

$ make build-production
go get -tags "fedora linux" fs
# github.com/go-sql-driver/mysql
src/github.com/go-sql-driver/mysql/connection.go:485: undefined: driver.TxOptions
src/github.com/go-sql-driver/mysql/connection.go:491: undefined: sql.IsolationLevel
src/github.com/go-sql-driver/mysql/connection.go:491: undefined: sql.LevelDefault
src/github.com/go-sql-driver/mysql/connection.go:505: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/connection.go:524: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/connection.go:558: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/connection.go:577: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/connection.go:642: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/utils.go:730: undefined: driver.NamedValue
src/github.com/go-sql-driver/mysql/utils.go:742: undefined: driver.IsolationLevel
src/github.com/go-sql-driver/mysql/connection.go:491: too many errors
Makefile:16: recipe for target 'build-production' failed
make: *** [build-production] Error 2
$ go version
go version go1.7.6 linux/amd64
@csoni111
Copy link
Member

@cpg could you try this go-sql-driver/mysql#638 (comment) ? Let me know if this helps.

@csoni111
Copy link
Member

Oh! turns out go 1.7 is not supported (go-sql-driver/mysql#831 (comment)) for mysql driver.
You need to update golang to a newer version on your system.

@cpg
Copy link
Member Author

cpg commented Jul 20, 2018

that's the latest in f25.

or compile in f27 and release it in f25, hoping it will work (and if not, piss off many of our users).

@csoni111
Copy link
Member

Don't install go using yum or dnf, instead manually download the latest compiled tar.gz for linux from https://golang.org/dl/ , unzip and place it into /usr/local. Finally update the PATH variable to access from anywhere.
ref.

@csoni111
Copy link
Member

csoni111 commented Jan 3, 2019

@cpg this can be closed if resolved.

@cpg cpg closed this as completed Jan 3, 2019
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