登陆linux
执行如下命令:
1. wget http://www.sqlite.org/sqlite-3.6.16.tar.gz 下载sqlite 安装文件
2.cd /usr/server 执行命令,到我需要安装的目录
3.tar -zxvf sqlite-3.6.16.tar.gz 解压缩文件
4.cd sqlite-3.6.16
5../configure --prefix=/usr/server/sqlite-3.6.16/ --build=i686-pc-linux-gnu
如果提示有错误,可能是gcc未安装,
执行yum -y install gcc
执行完了后在执行5.
如果没问题就可以编译了
6.make
7.make install
至此,安装完成!
8.sqlite user.db 出现如下信息表示安装成功。
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>