Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SQLite Installation

SQLite Installation

An important feature of SQLite is that it is zero-configuration, which means no complex installation or management is required. This chapter will explain installation and setup on Windows, Linux, and Mac OS X.

Installing SQLite on Windows



C:\>sqlite3

SQLite version 3.7.15.2 2013-01-09 11:53:05

Enter ".help" for instructions

Enter SQL statements terminated with a ";"

sqlite>

Installing SQLite on Linux

Currently, almost all versions of the Linux operating system come with SQLite. So, simply use the following command to check whether SQLite is installed on your machine.



$ sqlite3

SQLite version 3.7.15.2 2013-01-09 11:53:05

Enter ".help" for instructions

Enter SQL statements terminated with a ";"

sqlite>

If you do not see the above result, it means SQLite is not installed on your Linux machine. So, let's install SQLite by following the steps below:



$ tar xvzf sqlite-autoconf-3071502.tar.gz

$ cd sqlite-autoconf-3071502

$ ./configure --prefix=/usr/local

$ make

$ make install

The above steps will install SQLite on your Linux machine, and you can verify it as explained above.

Installing SQLite on Mac OS X

The latest version of Mac OS X comes with SQLite pre-installed, but if no installation is available, just follow the steps below:



$ tar xvzf sqlite-autoconf-3071502.tar.gz

$ cd sqlite-autoconf-3071502

$ ./configure --prefix=/usr/local

$ make

$ make install

The above steps will install SQLite on your Mac OS X machine, and you can verify with the following command:



$ sqlite3

SQLite version 3.7.15.2 2013-01-09 11:53:05

Enter ".help" for instructions

Enter SQL statements terminated with a ";"

sqlite>

Finally, at the SQLite command prompt, practice using SQLite commands.