sqlite3/backup.go:14:20: fatal error: stdlib.h: No such file or directory

错误提示

1
2
3
# github.com/mattn/go-sqlite3
../../../.go/src/github.com/mattn/go-sqlite3/backup.go:14:20: fatal error: stdlib.h: No such file or directory
compilation terminated.

解决方法

sudo apt-get install g++

参考链接

mattn/go-sqlite3/issues