"error": "Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub"
I am trying to deploy my golang web api which uses sqlite db to store and retrieve data.
I tried to add CGO_ENABLED=1 in the env variables but then it shows that gcc is not available .
What should I do ?
10 Replies
Project ID:
N/A
Solution
use a pure go sqlite adapter
the one without cgo ?
yep
Okay , will try that.
and set
CGO_ENABLED
back to 0
Okay
Thanks
no problem!
It worked ,thanks.
no problem!