[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 |
|
---|
[2222949] | 7 | <!-- moved to packages.ent because they are often forgotten...
|
---|
[aa5c3a7] | 8 | <!ENTITY sqlite-dl-version "3360000">
|
---|
| 9 | <!ENTITY sqlite-doc-version "3360000">
|
---|
[b00c15b] | 10 |
|
---|
[2222949] | 11 | When updating, do not forget the above entities... They are anyway -->
|
---|
[8cce479c] | 12 |
|
---|
[fe83f5c] | 13 | <!ENTITY sqlite-download-http "https://sqlite.org/2022/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
[e2a0e91] | 14 | <!ENTITY sqlite-download-ftp " ">
|
---|
[fe83f5c] | 15 | <!ENTITY sqlite-md5sum "683cc5312ee74e71079c14d24b7a6d27">
|
---|
[aa5c3a7] | 16 | <!ENTITY sqlite-size "2.9 MB">
|
---|
[64f21081] | 17 | <!ENTITY sqlite-buildsize "75 MB">
|
---|
[aa5c3a7] | 18 | <!ENTITY sqlite-time "0.4 SBU (Using parallelism=4)">
|
---|
[e5085ae1] | 19 |
|
---|
[fe83f5c] | 20 | <!ENTITY sqlite-docs-download "https://sqlite.org/2022/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
| 21 | <!ENTITY sqlite-docs-md5sum "7b5bc19641017458261bb66d0bae9389">
|
---|
[2ad718d] | 22 | <!ENTITY sqlite-docs-size "11 MB">
|
---|
[e2a0e91] | 23 | ]>
|
---|
| 24 |
|
---|
| 25 | <sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
---|
| 26 | <?dbhtml filename="sqlite.html"?>
|
---|
| 27 |
|
---|
| 28 | <sect1info>
|
---|
| 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 |
|
---|
[88fdf09] | 47 | &lfs110a_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">
|
---|
[39ffbd0] | 107 | <ulink url="http://www.thrysoee.dk/editline/">libedit</ulink> and
|
---|
[85e109d] | 108 | <xref linkend="unzip"/> (required to unzip the documentation)
|
---|
[a26f3f8f] | 109 | </para>
|
---|
[e2a0e91] | 110 |
|
---|
[a26f3f8f] | 111 | <para condition="html" role="usernotes">
|
---|
| 112 | User Notes: <ulink url="&blfs-wiki;/sqlite"/>
|
---|
| 113 | </para>
|
---|
[e2a0e91] | 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="installation">
|
---|
| 117 | <title>Installation of SQLite</title>
|
---|
| 118 |
|
---|
[a26f3f8f] | 119 | <para>
|
---|
| 120 | If you downloaded the optional documentation, issue the following command
|
---|
| 121 | to install the documentation into the source tree:
|
---|
| 122 | </para>
|
---|
[e5085ae1] | 123 |
|
---|
[5b50432] | 124 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
[e5085ae1] | 125 |
|
---|
[a26f3f8f] | 126 | <para>
|
---|
| 127 | Install <application>SQLite</application> by running the following
|
---|
| 128 | commands:
|
---|
| 129 | </para>
|
---|
[e2a0e91] | 130 |
|
---|
[b596c229] | 131 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 132 | --disable-static \
|
---|
| 133 | --enable-fts5 \
|
---|
[179d426d] | 134 | CPPFLAGS="-DSQLITE_ENABLE_FTS3=1 \
|
---|
| 135 | -DSQLITE_ENABLE_FTS4=1 \
|
---|
| 136 | -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
| 137 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
| 138 | -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
---|
| 139 | -DSQLITE_SECURE_DELETE=1 \
|
---|
| 140 | -DSQLITE_ENABLE_FTS3_TOKENIZER=1" &&
|
---|
[41745476] | 141 | make</userinput></screen>
|
---|
[e2a0e91] | 142 |
|
---|
[a26f3f8f] | 143 | <para>
|
---|
| 144 | This package does not come with a test suite.
|
---|
| 145 | </para>
|
---|
[e2a0e91] | 146 |
|
---|
[a26f3f8f] | 147 | <para>
|
---|
| 148 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 149 | </para>
|
---|
[e2a0e91] | 150 |
|
---|
| 151 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 152 |
|
---|
[a26f3f8f] | 153 | <para>
|
---|
| 154 | If you downloaded the optional documentation, issue the following commands
|
---|
| 155 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
| 156 | </para>
|
---|
[e5085ae1] | 157 |
|
---|
[780294af] | 158 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
[5b50432] | 159 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
[85e109d] | 160 |
|
---|
[e2a0e91] | 161 | </sect2>
|
---|
| 162 |
|
---|
[bdf24aa4] | 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
[a26f3f8f] | 166 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[10a480a] | 167 | href="../../xincludes/static-libraries.xml"/>
|
---|
[a26f3f8f] | 168 |
|
---|
| 169 | <para>
|
---|
[d72b599] | 170 | <parameter>--enable-fts5</parameter>: This switch enables support for
|
---|
| 171 | version 5 of the full text search extension.
|
---|
[f4ac439a] | 172 | </para>
|
---|
| 173 |
|
---|
| 174 | <para>
|
---|
[f622c396] | 175 | <parameter>CPPFLAGS="-DSQLITE_ENABLE_FTS3=1
|
---|
[5b44f2e] | 176 | -DSQLITE_ENABLE_FTS3_TOKENIZER=1
|
---|
[f91611f8] | 177 | -DSQLITE_ENABLE_FTS4=1
|
---|
[464f030] | 178 | -DSQLITE_ENABLE_COLUMN_METADATA=1
|
---|
[f4ac439a] | 179 | -DSQLITE_SECURE_DELETE
|
---|
| 180 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
---|
[7594f10] | 181 | -DSQLITE_ENABLE_DBSTAT_VTAB=1"</parameter>: Applications such as
|
---|
[3927e328] | 182 | <application>SeaMonkey</application> require these options
|
---|
[477e9f51] | 183 | to be turned on.
|
---|
| 184 | The only way to do this is to include them in
|
---|
[f622c396] | 185 | the <envar>CFLAGS</envar> or <envar>CPPFLAGS</envar>.
|
---|
| 186 | We use the latter so the default value (or any value set by the user)
|
---|
| 187 | of <envar>CFLAGS</envar> won't be affected.
|
---|
| 188 | For further information on what can be specified see <ulink
|
---|
[7594f10] | 189 | url="http://www.sqlite.org/compile.html"/>.
|
---|
[a26f3f8f] | 190 | </para>
|
---|
| 191 |
|
---|
[bdf24aa4] | 192 | </sect2>
|
---|
| 193 |
|
---|
[e2a0e91] | 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
| 196 |
|
---|
| 197 | <segmentedlist>
|
---|
| 198 | <segtitle>Installed Program</segtitle>
|
---|
[985d9e0] | 199 | <segtitle>Installed Library</segtitle>
|
---|
| 200 | <segtitle>Installed Directory</segtitle>
|
---|
[e2a0e91] | 201 |
|
---|
| 202 | <seglistitem>
|
---|
[8cce479c] | 203 | <seg>
|
---|
| 204 | sqlite3
|
---|
| 205 | </seg>
|
---|
| 206 | <seg>
|
---|
[985d9e0] | 207 | libsqlite3.so
|
---|
[8cce479c] | 208 | </seg>
|
---|
| 209 | <seg>
|
---|
| 210 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
| 211 | </seg>
|
---|
[e2a0e91] | 212 | </seglistitem>
|
---|
| 213 | </segmentedlist>
|
---|
| 214 |
|
---|
| 215 | <variablelist>
|
---|
| 216 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 217 | <?dbfo list-presentation="list"?>
|
---|
| 218 | <?dbhtml list-presentation="table"?>
|
---|
| 219 |
|
---|
| 220 | <varlistentry id="sqlite3">
|
---|
| 221 | <term><command>sqlite3</command></term>
|
---|
| 222 | <listitem>
|
---|
[a26f3f8f] | 223 | <para>
|
---|
[cceceaaf] | 224 | is a terminal-based front-end to the <application>SQLite</application>
|
---|
[a26f3f8f] | 225 | library that can evaluate queries interactively and display the
|
---|
[4c24eb0a] | 226 | results
|
---|
[a26f3f8f] | 227 | </para>
|
---|
[e2a0e91] | 228 | <indexterm zone="sqlite sqlite3">
|
---|
| 229 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="libsqlite3">
|
---|
[8cce479c] | 235 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
[e2a0e91] | 236 | <listitem>
|
---|
[a26f3f8f] | 237 | <para>
|
---|
[4c24eb0a] | 238 | contains the <application>SQLite</application> API functions
|
---|
[a26f3f8f] | 239 | </para>
|
---|
[e2a0e91] | 240 | <indexterm zone="sqlite libsqlite3">
|
---|
[1f95134] | 241 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
[e2a0e91] | 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
[8cce479c] | 245 |
|
---|
[e2a0e91] | 246 | </variablelist>
|
---|
[8cce479c] | 247 |
|
---|
[e2a0e91] | 248 | </sect2>
|
---|
[8cce479c] | 249 |
|
---|
[e2a0e91] | 250 | </sect1>
|
---|