Sqlite安裝教程

來源:互聯網
上載者:User

標籤:oca   提示   get   win32   rpm   target   www   nload   dev   

Sqlite下載頁面:http://www.sqlite.org/download.html

Windows安裝

需要下載 sqlite-tools-win32-*.zip 和 sqlite-dll-win32-*.zip 壓縮檔。

建立檔案夾 C:\sqlite,並在此檔案夾下解壓上面兩個壓縮檔,將得到 sqlite3.def、sqlite3.dll 和 sqlite3.exe 檔

添加 C:\sqlite 到 PATH 環境變數,最後在命令提示字元下,使用 sqlite3 命令

C:\>sqlite3SQLite version 3.7.15.2 2013-01-09 11:53:05Enter ".help" for instructionsEnter SQL statements terminated with a ";"sqlite>

Linux安裝

目前,幾乎所有版本的 Linux 作業系統都附帶 SQLite。所以,只要使用下面的命令來檢查您的機器上是否已經安裝了 SQLite

$sqlite3SQLite version 3.7.15.2 2013-01-09 11:53:05Enter ".help" for instructionsEnter SQL statements terminated with a ";"sqlite>
如果沒有看到上面的結果,那麼就意味著沒有在 Linux 機器上安裝 SQLite。因此,讓我們按照下面的步驟安裝 SQLite:

請訪問 SQLite 下載頁面,從原始碼區下載 sqlite-autoconf-*.tar.gz

步驟如下:
$tar xvfz sqlite-autoconf-3071502.tar.gz$cd sqlite-autoconf-3071502$./configure --prefix=/usr/local$make$make install

1、bin檔案安裝
解壓下載的檔案,放到 /usr/bin/

rpm檔案安裝
yum install -y sqlite sqlite-devel

02、運行
sqlite3

Sqlite安裝教程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.