安装sqlite3

说明

当前操作在root用户下执行

1.安装编译工具

yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

2.下载安装包

cd /opt 
wget http://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz #下载安装包
tar zxvf sqlite-autoconf-3081101.tar.gz  #进行解压

3.编译安装

cd sqlite-autoconf-3081101/
./configure
make && make install
yum install sqlite-devel

4.链接sqlite3

cd #回到用户目录
sqlite3 #链接sqlite3

5.退出sqlite3

sqlite3链接成功后,执行如下:

sqlite> .quit #退出sqlite3
posted @ 2018-09-15 10:22  忧臣解读  阅读(1566)  评论(0编辑  收藏  举报