sudo apt-get install sqlite3 为了使GCC能顺利编译有sqlite3.h头文件的源码需要: sudo apt-get install libsqlite3-dev 编译时在最后加上-lsqlite3 例如,gcc -o hello hello.c -lsqlite3