2009-07-26 14:17:47 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2013-12-08 19:10:36 +08:00
|
|
|
<!ENTITY sqlite-dl-version "3080200">
|
|
|
|
<!ENTITY sqlite-doc-version "3080200">
|
2012-12-31 22:26:44 +08:00
|
|
|
|
2012-04-03 21:15:24 +08:00
|
|
|
<!ENTITY sqlite-download-http
|
2013-03-24 18:56:56 +08:00
|
|
|
"http://sqlite.org/2013/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
2009-07-26 14:17:47 +08:00
|
|
|
<!ENTITY sqlite-download-ftp " ">
|
2013-12-08 19:10:36 +08:00
|
|
|
<!ENTITY sqlite-md5sum "f62206713e6a08d4ccbc60b1fd712a1a">
|
2013-10-18 20:14:21 +08:00
|
|
|
<!ENTITY sqlite-size "1.9 MB">
|
|
|
|
<!ENTITY sqlite-buildsize "39 MB (includes optional documentation)">
|
2013-08-30 06:13:41 +08:00
|
|
|
<!ENTITY sqlite-time "0.2 SBU">
|
2010-02-15 09:27:35 +08:00
|
|
|
|
2012-04-03 21:15:24 +08:00
|
|
|
<!ENTITY sqlite-docs-download
|
2013-03-24 18:56:56 +08:00
|
|
|
"http://sqlite.org/2013/sqlite-doc-&sqlite-doc-version;.zip">
|
2013-12-08 19:10:36 +08:00
|
|
|
<!ENTITY sqlite-docs-md5sum "4790bac23e7e4cbf6c1c040eee1bfdcc">
|
2013-08-30 23:09:46 +08:00
|
|
|
<!ENTITY sqlite-docs-size "4.1 MB">
|
2009-07-26 14:17:47 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
|
|
|
<?dbhtml filename="sqlite.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>SQLite-&sqlite-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="sqlite">
|
|
|
|
<primary sortas="a-SQLite">SQLite</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to SQLite</title>
|
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
The <application>SQLite</application> package is a software library that
|
|
|
|
implements a self-contained, serverless, zero-configuration, transactional
|
|
|
|
SQL database engine.
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
2013-08-18 12:37:04 +08:00
|
|
|
&lfs74_checked;
|
2009-08-01 05:36:53 +08:00
|
|
|
|
2009-07-26 14:17:47 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&sqlite-download-http;"/>
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&sqlite-download-ftp;"/>
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &sqlite-md5sum;
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download size: &sqlite-size;
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &sqlite-buildsize;
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &sqlite-time;
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2010-05-01 21:58:01 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<title>Optional Documentation</title>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&sqlite-docs-download;"/>
|
|
|
|
</para>
|
2010-05-01 21:58:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &sqlite-docs-md5sum;
|
|
|
|
</para>
|
2010-05-01 21:58:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Download size: &sqlite-docs-size;
|
|
|
|
</para>
|
2010-05-01 21:58:01 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
2010-08-14 19:43:52 +08:00
|
|
|
<bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="unzip"/> (required to unzip the documentation).
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/sqlite"/>
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of SQLite</title>
|
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the optional documentation, issue the following command
|
|
|
|
to install the documentation into the source tree:
|
|
|
|
</para>
|
2010-02-15 09:27:35 +08:00
|
|
|
|
2012-10-19 05:46:13 +08:00
|
|
|
<screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
2010-02-15 09:27:35 +08:00
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Install <application>SQLite</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
2012-12-31 22:26:44 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --disable-static \
|
|
|
|
CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 \
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
|
|
|
-DSQLITE_SECURE_DELETE=1" &&
|
2009-07-26 14:17:47 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the optional documentation, issue the following commands
|
|
|
|
as the <systemitem class="username">root</systemitem> user to install it:
|
|
|
|
</para>
|
2010-02-15 09:27:35 +08:00
|
|
|
|
2010-08-14 19:43:52 +08:00
|
|
|
<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
2012-10-19 05:46:13 +08:00
|
|
|
cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
2009-07-26 14:17:47 +08:00
|
|
|
</sect2>
|
|
|
|
|
2010-03-29 20:37:44 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-04-03 21:02:02 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2012-07-05 21:05:31 +08:00
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
2012-04-03 21:02:02 +08:00
|
|
|
|
|
|
|
<para>
|
2012-12-31 22:26:44 +08:00
|
|
|
<parameter>CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE
|
2012-04-03 21:02:02 +08:00
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as
|
|
|
|
<application>Firefox</application> require secure delete and enable unlock
|
|
|
|
notify to be turned on. The only way to do this is to include them in the
|
|
|
|
CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
|
|
|
|
specify that to preserve those settings. You may, of course, wish to omit
|
|
|
|
the <literal>'-g'</literal> if you do not wish to create debugging
|
|
|
|
information. For further information on what can be specified see
|
|
|
|
<ulink url="http://www.sqlite.org/compile.html"/>.
|
|
|
|
</para>
|
|
|
|
|
2010-03-29 20:37:44 +08:00
|
|
|
</sect2>
|
|
|
|
|
2009-07-26 14:17:47 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2013-01-18 23:06:25 +08:00
|
|
|
<segtitle>Installed Directory</segtitle>
|
2009-07-26 14:17:47 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-12-31 22:26:44 +08:00
|
|
|
<seg>
|
|
|
|
sqlite3
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libsqlite3.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/share/doc/sqlite-&sqlite-version;
|
|
|
|
</seg>
|
2009-07-26 14:17:47 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="sqlite3">
|
|
|
|
<term><command>sqlite3</command></term>
|
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
A terminal-based front-end to the <application>SQLite</application>
|
|
|
|
library that can evaluate queries interactively and display the
|
|
|
|
results.
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
<indexterm zone="sqlite sqlite3">
|
|
|
|
<primary sortas="b-sqlite3">sqlite3</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libsqlite3">
|
2012-12-31 22:26:44 +08:00
|
|
|
<term><filename class="libraryfile">libsqlite3.so</filename></term>
|
2009-07-26 14:17:47 +08:00
|
|
|
<listitem>
|
2012-04-03 21:02:02 +08:00
|
|
|
<para>
|
|
|
|
contains the <application>SQLite</application> API functions.
|
|
|
|
</para>
|
2009-07-26 14:17:47 +08:00
|
|
|
<indexterm zone="sqlite libsqlite3">
|
2012-02-02 00:54:08 +08:00
|
|
|
<primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
2009-07-26 14:17:47 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-12-31 22:26:44 +08:00
|
|
|
|
2009-07-26 14:17:47 +08:00
|
|
|
</variablelist>
|
2012-12-31 22:26:44 +08:00
|
|
|
|
2009-07-26 14:17:47 +08:00
|
|
|
</sect2>
|
2012-12-31 22:26:44 +08:00
|
|
|
|
2009-07-26 14:17:47 +08:00
|
|
|
</sect1>
|