Sqlite3 stdlib.h: No such file or directory

Sep 23, 2018 12:29 · 39 words · 1 minute read· views golang

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

错误提示

# 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

tweet Share