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