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