paulsmith / gogeos

Go library for spatial data operations and geometric algorithms (Go bindings for GEOS)
http://paulsmith.github.io/gogeos/
MIT License
280 stars 79 forks source link

geos undefined: coordSeq #33

Closed marwankous closed 2 years ago

marwankous commented 2 years ago

when i try to install the package i get the following message

OS: ubuntu

go get github.com/paulsmith/gogeos/geos /go/pkg/mod/github.com/paulsmith/gogeos@v0.1.2/geos/coord.go:23:21: undefined: coordSeq /go/pkg/mod/github.com/paulsmith/gogeos@v0.1.2/geos/helper.go:5:14: undefined: Geometry exit status 2

carlokuiper commented 2 years ago

I had the same issue, but after setting CGO_ENABLED to 1 it worked for me. export CGO_ENABLED=1