sqlite-安装出现的问题及处理

sqlite-error处理

ubuntu下sqlite安装

使用./configure make make istall安装后,

命令行输入sqlite3,回车,出现:SQLite header and source version mismatch 错误提示

处理办法:http://blog.csdn.net/gebitan505/article/details/19982077

sqlite移植

./configure --(prefix host CC)配置 完毕后,make回车,

出现:make: Nothing to be done for `all' 

解决方法:这句提示是说明你已经编译好了,而且没有对代码进行任何

改动。若想重新编译,可以先删除以前编译产生的目标文件:make clean,然后再make。

sqlite C程序编译

第一次编译,找不到  lsqlite3

root@vm-ubuntu:~/sqlite_C# ls
sqlite3.h  sqlite3.h.gch  sqlite_test.c
root@vm-ubuntu:~/sqlite_C# gcc sqlite_test.c -l sqlite3
/usr/bin/ld: cannot find -lsqlite3
collect2: error: ld returned 1 exit status

解决办法:/usr/bin/存放库文件,或者库文件的快捷方式,cannot find -lsqlite3说明在编译时在/usr/bin/里没有找到sqlite3的库"libsqlite.so",所以复制安装路径/home/sqlite3_i386/lib/的,

posted @ 2015-11-16 17:37  cuiz_book  阅读(1201)  评论(0编辑  收藏  举报