安裝sqlite3

說明

當前操做在root用戶下執行sql

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連接成功後,執行以下:shell

sqlite> .quit #退出sqlite3
相關文章
相關標籤/搜索