mirror of
https://github.com/glfs-book/glfs.git
synced 2026-01-31 08:36:06 +00:00
145 lines
4.0 KiB
XML
145 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!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;
|
|
|
|
<!ENTITY sqlite-download "https://sqlite.org/&sqlite-year;/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
|
]>
|
|
|
|
<sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
|
<?dbhtml filename="sqlite.html"?>
|
|
|
|
|
|
<title>SQLite-&sqlite-version;</title>
|
|
|
|
<indexterm zone="sqlite">
|
|
<primary sortas="a-SQLite">SQLite</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to SQLite</title>
|
|
|
|
<para>
|
|
The SQLite package is a software library that
|
|
implements a self-contained, serverless, zero-configuration, transactional
|
|
SQL database engine. This package is required by <ulink
|
|
url="&blfs-svn;/xsoft/firefox.html">Firefox</ulink>.
|
|
</para>
|
|
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download: <ulink url="&sqlite-download;"/>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of SQLite</title>
|
|
|
|
<para>
|
|
Install SQLite by running the following commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
--disable-static \
|
|
--enable-fts{4,5} \
|
|
CPPFLAGS="-D SQLITE_ENABLE_COLUMN_METADATA=1 \
|
|
-D SQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
|
-D SQLITE_ENABLE_DBSTAT_VTAB=1 \
|
|
-D SQLITE_SECURE_DELETE=1" &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
Now, as the &root; user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
&static-libraries;
|
|
|
|
<para>
|
|
<parameter>--enable-fts{4,5}</parameter>: These switches enable
|
|
support for version 4 and 5 of the full text search (FTS)
|
|
extension.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>CPPFLAGS="-D SQLITE_ENABLE_COLUMN_METADATA=1 ... </parameter>:
|
|
Some applications require these options to be turned on.
|
|
The only way to do this is to include them in
|
|
the <envar>CFLAGS</envar> or <envar>CPPFLAGS</envar>.
|
|
We use the latter so the default value (or any value set by the user)
|
|
of <envar>CFLAGS</envar> won't be affected.
|
|
For further information on what can be specified see <ulink
|
|
url="https://www.sqlite.org/compile.html"/>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
sqlite3
|
|
</seg>
|
|
<seg>
|
|
libsqlite3
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</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>
|
|
<para>
|
|
is a terminal-based front-end to the SQLite
|
|
library that can evaluate queries interactively and display the
|
|
results
|
|
</para>
|
|
<indexterm zone="sqlite sqlite3">
|
|
<primary sortas="b-sqlite3">sqlite3</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libsqlite3">
|
|
<term><filename class="libraryfile">libsqlite3</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the SQLite API functions
|
|
</para>
|
|
<indexterm zone="sqlite libsqlite3">
|
|
<primary sortas="c-libsqlite3">libsqlite3</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|