ubuntu安装sqlite及出错处理

来源:互联网 发布:web网络考勤管理系统 编辑:程序博客网 时间:2024/06/05 02:58

ubuntu安装sqlite及出错处理


出错处理参考:
     http://stackoverflow.com/questions/6696861/how-do-i-upgrade-my-sqlite3-package-on-debian-lenny


To compile you probably need build-essentials:

alfred@alfred-laptop:~$ apt-cache search ^build-essential$build-essential - Informational list of build-essential packagesalfred@alfred-laptop:~$ sudo apt-get install build-essential

Compile SQLite:

alfred@alfred-laptop:~/tmp$ wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gzalfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ ./configurealfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ makealfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sudo make installalfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sudo ldconfig

especially sudo ldconfig is important. When I did not do that I got

alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sqlite3SQLite header and source version mismatch2010-08-23 18:52:01 42537b60566f288167f1b5864a5435986838e3a32011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f

I am running Ubuntu which is based on Debian:

alfred@alfred-laptop:~/linux$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.10 DISTRIB_CODENAME=maverick DISTRIB_DESCRIPTION="Ubuntu 10.10"

Finally I ran sqlite3

alfred@alfred-laptop:~$ sqlite3 --version3.7.7.1 2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f
share|improve this answer
0 0
原创粉丝点击