knakk / rdf2rdf

Tool for converting between different RDF serialization formats
27 stars 5 forks source link

Undefined: bytes.ContainsRune at Build #1

Open JeroenSteen opened 7 years ago

JeroenSteen commented 7 years ago

I have Ubuntu 16.05, and I came across Rdf2RDF because I want to convert an .nt file to .rdf. I´m new to Go, I installed with apt-get and have go version go1.6.2 linux/amd64.

I added Go bin to Path (under root and normal account), and tried go get -u github.com/knakk/rdf2rdf. But I get a /root/go/src/github.com/knakk/rdf/lex.go:242: undefined: bytes.ContainsRune error, also when I clone the repo and run go build.

How come that I get this error, and how can I fix it?

boutros commented 7 years ago

bytes.ContainsRune is from go version 1.7. If you don't want/or can't upgrade, I might provide binaries for rdf2rdf or consider updating the library to not depend on that function.