Thursday, November 29, 2012

Golang: Installing Go PostgreSQL Driver

To install Go PostgreSQL driver (with CGO), you need to specify CGO_LDFLAGS and CGO_CFLAGS for your pg_config

CGO_CFLAGS="-I`pg_config --includedir`" CGO_LDFLAGS="-L`pg_config --libdir` -lpq" go get github.com/jbarham/gopgsqldriver

No comments:

Post a Comment