How to Install SQLite 3.9.1 with JSON Support on Ubuntu 15.04

November 4, 2015 | By in UBUNTU HOWTO
| Reply More

Hello and welcome to our today's article on SQLite which is the most widely deployed SQL database engine in the world that comes with zero-configuration, that means no setup or administration needed. SQLite is public-domain software package that provides relational database management system, or RDBMS that is used to store user-defined records in large tables. In addition to data storage and management, database engine process complex query commands that combine data from multiple tables to generate reports and data summaries.

SQLite is very small and light weight that does not require a separate server process or system to operate. It is available on UNIX, Linux, Mac OS-X, Android, iOS and Windows which is being used in various software applications like Opera, Ruby On Rails, Adobe System, Mozilla Firefox, Google Chrome and Skype.

1) Basic Requirements:

There is are no such complex complex requirements for the installation of SQLite as it mostly comes support all major cross platforms.

So, let's login to your Ubuntu server with sudo or root credentials using your CLI or Secure Shell. Then update your system so that your operating system is upto date with latest packages.

In ubuntu, the below command is to be used for system update.

# apt-get update

If you are starting to deploy SQLite on on a fresh Ubuntu, then make sure that you have installed some basic system management utilities like wget, make, unzip, gcc.

To install wget, make and gcc packages on ubuntu, you use the below command, then press "Y" to allow and proceed with installation of these packages.

# apt-get install wget make gcc

2) Download SQLite

To download the latest package of SQLite, you can refer to their official SQLite Download Page as shown below.

SQLite download

You can copy the link of its resource package and download it on ubuntu server using the wget utility command.

# wget

wget SQLite

After downloading is complete, extract the package and change your current directory to the extracted SQLite folder by using the below command as shown.

# tar -zxvf sqlite-autoconf-3090100.tar.gz

3) Installing SQLite

Now we are going to install and configure the SQLite package that we downloaded. So, to compile and install SQLite on ubuntu run the configuration script within the same directory where your have extracted the SQLite package as shown below.

root@ubuntu-15:~/sqlite-autoconf-3090100# ./configure –prefix=/usr/local

SQLite Installation

Once the package is configuration is done under the mentioned prefix, then run the below command make command to compile the package.

root@ubuntu-15:~/sqlite-autoconf-3090100# make
source='sqlite3.c' object='sqlite3.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \

After running make command, to complete the installation of SQLite on ubuntu run the 'make install' command as shown below.

# make install

SQLite Make Install

4) Testing SQLite Installation

To confirm the successful installation of SQLite 3.9, run the below command in your command line interface.

# sqlite3

You will the SQLite verion after running the above command as shown.

Testing SQLite Installation

5) Using SQLite

SQLite is very handy to use. To get the detailed information about its usage, simply run the below command in the SQLite console.

sqlite> .help

So here is the list of all its available commands, with their description that you can get help to start using SQLite.

SQLite Help

Now in this last section , we make use of few SQLite commands to create a new database using the SQLite3 command line interface.

To to create a new database run the below command.

# sqlite3 test.db

To create a table within the new database run the below command.

sqlite> create table memos(text, priority INTEGER);

After creating the table, insert some data using the following commands.

sqlite> insert into memos values('deliver project description', 15);
sqlite> insert into memos values('writing new artilces', 100);

To view the inserted data from the table , run the below command.

sqlite> select * from memos;
deliver project description|15
writing new artilces|100

to exit from the sqlite3 type the below command.

sqlite> .exit

Using SQLite3


In this article you learned the installation of latest version of SQLite 3.9.1 which enables the recently JSON1 support in its 3.9.0 version and so on. Its is an amazing library that gets embedded inside the application that makes use of it to keep the resources much efficient and lighter. We hope you find this article much helpful, feel free to get back to us if you find any difficulty.


Share This :

Free Linux Ebook to Download

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.