[e2a0e91] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b48b05aa] | 7 | <!ENTITY sqlite-dl-version "3080701">
|
---|
| 8 | <!ENTITY sqlite-doc-version "3080701">
|
---|
[8cce479c] | 9 |
|
---|
[433a30b0] | 10 | <!ENTITY sqlite-download-http
|
---|
[0ad0ff2] | 11 | "http://sqlite.org/2014/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
[e2a0e91] | 12 | <!ENTITY sqlite-download-ftp " ">
|
---|
[b48b05aa] | 13 | <!ENTITY sqlite-md5sum "8ee4541ebb3e5739e7ef5e9046e30063">
|
---|
[b0f113d] | 14 | <!ENTITY sqlite-size "2 MB">
|
---|
| 15 | <!ENTITY sqlite-buildsize "17 MB (additional 25 MB for the Optional Documentation)">
|
---|
[b48b05aa] | 16 | <!ENTITY sqlite-time "0.3 SBU">
|
---|
[e5085ae1] | 17 |
|
---|
[433a30b0] | 18 | <!ENTITY sqlite-docs-download
|
---|
[0ad0ff2] | 19 | "http://sqlite.org/2014/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
[b48b05aa] | 20 | <!ENTITY sqlite-docs-md5sum "b20be3cc3ad01ae1bd01a731280290a0">
|
---|
[b0f113d] | 21 | <!ENTITY sqlite-docs-size "4.7 MB">
|
---|
[e2a0e91] | 22 | ]>
|
---|
| 23 |
|
---|
| 24 | <sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
---|
| 25 | <?dbhtml filename="sqlite.html"?>
|
---|
| 26 |
|
---|
| 27 | <sect1info>
|
---|
| 28 | <othername>$LastChangedBy$</othername>
|
---|
| 29 | <date>$Date$</date>
|
---|
| 30 | </sect1info>
|
---|
| 31 |
|
---|
| 32 | <title>SQLite-&sqlite-version;</title>
|
---|
| 33 |
|
---|
| 34 | <indexterm zone="sqlite">
|
---|
| 35 | <primary sortas="a-SQLite">SQLite</primary>
|
---|
| 36 | </indexterm>
|
---|
| 37 |
|
---|
| 38 | <sect2 role="package">
|
---|
| 39 | <title>Introduction to SQLite</title>
|
---|
| 40 |
|
---|
[a26f3f8f] | 41 | <para>
|
---|
| 42 | The <application>SQLite</application> package is a software library that
|
---|
| 43 | implements a self-contained, serverless, zero-configuration, transactional
|
---|
| 44 | SQL database engine.
|
---|
| 45 | </para>
|
---|
[e2a0e91] | 46 |
|
---|
[7274e6c] | 47 | &lfs76_checked;
|
---|
[49f7d8b] | 48 |
|
---|
[e2a0e91] | 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
[a26f3f8f] | 52 | <para>
|
---|
| 53 | Download (HTTP): <ulink url="&sqlite-download-http;"/>
|
---|
| 54 | </para>
|
---|
[e2a0e91] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[a26f3f8f] | 57 | <para>
|
---|
| 58 | Download (FTP): <ulink url="&sqlite-download-ftp;"/>
|
---|
| 59 | </para>
|
---|
[e2a0e91] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[a26f3f8f] | 62 | <para>
|
---|
| 63 | Download MD5 sum: &sqlite-md5sum;
|
---|
| 64 | </para>
|
---|
[e2a0e91] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[a26f3f8f] | 67 | <para>
|
---|
| 68 | Download size: &sqlite-size;
|
---|
| 69 | </para>
|
---|
[e2a0e91] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[a26f3f8f] | 72 | <para>
|
---|
| 73 | Estimated disk space required: &sqlite-buildsize;
|
---|
| 74 | </para>
|
---|
[e2a0e91] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[a26f3f8f] | 77 | <para>
|
---|
| 78 | Estimated build time: &sqlite-time;
|
---|
| 79 | </para>
|
---|
[e2a0e91] | 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
[10e02da] | 83 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 84 | <itemizedlist spacing="compact">
|
---|
| 85 | <title>Optional Documentation</title>
|
---|
| 86 | <listitem>
|
---|
[a26f3f8f] | 87 | <para>
|
---|
| 88 | Download (HTTP): <ulink url="&sqlite-docs-download;"/>
|
---|
| 89 | </para>
|
---|
[10e02da] | 90 | </listitem>
|
---|
| 91 | <listitem>
|
---|
[a26f3f8f] | 92 | <para>
|
---|
| 93 | Download MD5 sum: &sqlite-docs-md5sum;
|
---|
| 94 | </para>
|
---|
[10e02da] | 95 | </listitem>
|
---|
| 96 | <listitem>
|
---|
[a26f3f8f] | 97 | <para>
|
---|
| 98 | Download size: &sqlite-docs-size;
|
---|
| 99 | </para>
|
---|
[10e02da] | 100 | </listitem>
|
---|
| 101 | </itemizedlist>
|
---|
[e2a0e91] | 102 |
|
---|
[780294af] | 103 | <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
---|
| 104 |
|
---|
| 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a26f3f8f] | 106 | <para role="optional">
|
---|
| 107 | <xref linkend="unzip"/> (required to unzip the documentation).
|
---|
| 108 | </para>
|
---|
[e2a0e91] | 109 |
|
---|
[a26f3f8f] | 110 | <para condition="html" role="usernotes">
|
---|
| 111 | User Notes: <ulink url="&blfs-wiki;/sqlite"/>
|
---|
| 112 | </para>
|
---|
[e2a0e91] | 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of SQLite</title>
|
---|
| 117 |
|
---|
[a26f3f8f] | 118 | <para>
|
---|
| 119 | If you downloaded the optional documentation, issue the following command
|
---|
| 120 | to install the documentation into the source tree:
|
---|
| 121 | </para>
|
---|
[e5085ae1] | 122 |
|
---|
[5b50432] | 123 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
[e5085ae1] | 124 |
|
---|
[a26f3f8f] | 125 | <para>
|
---|
| 126 | Install <application>SQLite</application> by running the following
|
---|
| 127 | commands:
|
---|
| 128 | </para>
|
---|
[e2a0e91] | 129 |
|
---|
[8cce479c] | 130 | <screen><userinput>./configure --prefix=/usr --disable-static \
|
---|
| 131 | CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 \
|
---|
| 132 | -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
| 133 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
| 134 | -DSQLITE_SECURE_DELETE=1" &&
|
---|
[e2a0e91] | 135 | make</userinput></screen>
|
---|
| 136 |
|
---|
[a26f3f8f] | 137 | <para>
|
---|
| 138 | This package does not come with a test suite.
|
---|
| 139 | </para>
|
---|
[e2a0e91] | 140 |
|
---|
[a26f3f8f] | 141 | <para>
|
---|
| 142 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
[e2a0e91] | 144 |
|
---|
| 145 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 146 |
|
---|
[a26f3f8f] | 147 | <para>
|
---|
| 148 | If you downloaded the optional documentation, issue the following commands
|
---|
| 149 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
| 150 | </para>
|
---|
[e5085ae1] | 151 |
|
---|
[780294af] | 152 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
[5b50432] | 153 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
[e2a0e91] | 154 | </sect2>
|
---|
| 155 |
|
---|
[bdf24aa4] | 156 | <sect2 role="commands">
|
---|
| 157 | <title>Command Explanations</title>
|
---|
| 158 |
|
---|
[a26f3f8f] | 159 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[10a480a] | 160 | href="../../xincludes/static-libraries.xml"/>
|
---|
[a26f3f8f] | 161 |
|
---|
| 162 | <para>
|
---|
[8cce479c] | 163 | <parameter>CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1
|
---|
| 164 | -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE
|
---|
[a26f3f8f] | 165 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as
|
---|
| 166 | <application>Firefox</application> require secure delete and enable unlock
|
---|
| 167 | notify to be turned on. The only way to do this is to include them in the
|
---|
| 168 | CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
|
---|
| 169 | specify that to preserve those settings. You may, of course, wish to omit
|
---|
| 170 | the <literal>'-g'</literal> if you do not wish to create debugging
|
---|
| 171 | information. For further information on what can be specified see
|
---|
| 172 | <ulink url="http://www.sqlite.org/compile.html"/>.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[bdf24aa4] | 175 | </sect2>
|
---|
| 176 |
|
---|
[e2a0e91] | 177 | <sect2 role="content">
|
---|
| 178 | <title>Contents</title>
|
---|
| 179 |
|
---|
| 180 | <segmentedlist>
|
---|
| 181 | <segtitle>Installed Program</segtitle>
|
---|
| 182 | <segtitle>Installed Library</segtitle>
|
---|
[82fac2c] | 183 | <segtitle>Installed Directory</segtitle>
|
---|
[e2a0e91] | 184 |
|
---|
| 185 | <seglistitem>
|
---|
[8cce479c] | 186 | <seg>
|
---|
| 187 | sqlite3
|
---|
| 188 | </seg>
|
---|
| 189 | <seg>
|
---|
| 190 | libsqlite3.so
|
---|
| 191 | </seg>
|
---|
| 192 | <seg>
|
---|
| 193 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
| 194 | </seg>
|
---|
[e2a0e91] | 195 | </seglistitem>
|
---|
| 196 | </segmentedlist>
|
---|
| 197 |
|
---|
| 198 | <variablelist>
|
---|
| 199 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 200 | <?dbfo list-presentation="list"?>
|
---|
| 201 | <?dbhtml list-presentation="table"?>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="sqlite3">
|
---|
| 204 | <term><command>sqlite3</command></term>
|
---|
| 205 | <listitem>
|
---|
[a26f3f8f] | 206 | <para>
|
---|
| 207 | A terminal-based front-end to the <application>SQLite</application>
|
---|
| 208 | library that can evaluate queries interactively and display the
|
---|
| 209 | results.
|
---|
| 210 | </para>
|
---|
[e2a0e91] | 211 | <indexterm zone="sqlite sqlite3">
|
---|
| 212 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="libsqlite3">
|
---|
[8cce479c] | 218 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
[e2a0e91] | 219 | <listitem>
|
---|
[a26f3f8f] | 220 | <para>
|
---|
| 221 | contains the <application>SQLite</application> API functions.
|
---|
| 222 | </para>
|
---|
[e2a0e91] | 223 | <indexterm zone="sqlite libsqlite3">
|
---|
[1f95134] | 224 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
[e2a0e91] | 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[8cce479c] | 228 |
|
---|
[e2a0e91] | 229 | </variablelist>
|
---|
[8cce479c] | 230 |
|
---|
[e2a0e91] | 231 | </sect2>
|
---|
[8cce479c] | 232 |
|
---|
[e2a0e91] | 233 | </sect1>
|
---|