[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 |
|
---|
[10a480a] | 7 | <!ENTITY sqlite-dl-version "3071300">
|
---|
[433a30b0] | 8 | <!ENTITY sqlite-download-http
|
---|
| 9 | "http://sqlite.org/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
[e2a0e91] | 10 | <!ENTITY sqlite-download-ftp " ">
|
---|
[10a480a] | 11 | <!ENTITY sqlite-md5sum "c97df403e8a3d5b67bb408fcd6aabd8e">
|
---|
[e6d1adc7] | 12 | <!ENTITY sqlite-size "1.8 MB">
|
---|
[10a480a] | 13 | <!ENTITY sqlite-buildsize "41 MB (includes optional documentation)">
|
---|
| 14 | <!ENTITY sqlite-time "0.2 SBU">
|
---|
[e5085ae1] | 15 |
|
---|
[10a480a] | 16 | <!ENTITY sqlite-docs-md5sum "16a003d5a619a6c725e3d81cf5aaba2a">
|
---|
| 17 | <!ENTITY sqlite-docs-size "3.7 MB">
|
---|
[433a30b0] | 18 | <!ENTITY sqlite-docs-download
|
---|
| 19 | "http://sqlite.org/sqlite-doc-&sqlite-dl-version;.zip">
|
---|
[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 |
|
---|
[2870db0] | 45 | &lfs72_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">
|
---|
| 105 | <xref linkend="unzip"/> (required to unzip the documentation).
|
---|
| 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 |
|
---|
[a26f3f8f] | 116 | <para>
|
---|
| 117 | If you downloaded the optional documentation, issue the following command
|
---|
| 118 | to install the documentation into the source tree:
|
---|
| 119 | </para>
|
---|
[e5085ae1] | 120 |
|
---|
[1f95134] | 121 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-dl-version;.zip</userinput></screen>
|
---|
[e5085ae1] | 122 |
|
---|
[a26f3f8f] | 123 | <para>
|
---|
| 124 | Install <application>SQLite</application> by running the following
|
---|
| 125 | commands:
|
---|
| 126 | </para>
|
---|
[e2a0e91] | 127 |
|
---|
[48f85c3] | 128 | <screen><userinput>./configure --prefix=/usr --disable-static \
|
---|
[1f95134] | 129 | CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" &&
|
---|
[e2a0e91] | 130 | make</userinput></screen>
|
---|
| 131 |
|
---|
[a26f3f8f] | 132 | <para>
|
---|
| 133 | This package does not come with a test suite.
|
---|
| 134 | </para>
|
---|
[e2a0e91] | 135 |
|
---|
[a26f3f8f] | 136 | <para>
|
---|
| 137 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 138 | </para>
|
---|
[e2a0e91] | 139 |
|
---|
| 140 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 141 |
|
---|
[a26f3f8f] | 142 | <para>
|
---|
| 143 | If you downloaded the optional documentation, issue the following commands
|
---|
| 144 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
| 145 | </para>
|
---|
[e5085ae1] | 146 |
|
---|
[780294af] | 147 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
[1f95134] | 148 | cp -v -R sqlite-doc-&sqlite-dl-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
[e2a0e91] | 149 | </sect2>
|
---|
| 150 |
|
---|
[bdf24aa4] | 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
[a26f3f8f] | 154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[10a480a] | 155 | href="../../xincludes/static-libraries.xml"/>
|
---|
[a26f3f8f] | 156 |
|
---|
| 157 | <para>
|
---|
| 158 | <parameter>CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE
|
---|
| 159 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as
|
---|
| 160 | <application>Firefox</application> require secure delete and enable unlock
|
---|
| 161 | notify to be turned on. The only way to do this is to include them in the
|
---|
| 162 | CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
|
---|
| 163 | specify that to preserve those settings. You may, of course, wish to omit
|
---|
| 164 | the <literal>'-g'</literal> if you do not wish to create debugging
|
---|
| 165 | information. For further information on what can be specified see
|
---|
| 166 | <ulink url="http://www.sqlite.org/compile.html"/>.
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
| 170 | <option>-DSQLITE_ENABLE_COLUMN_METADATA</option>: Add this to the CFLAGS
|
---|
| 171 | if you want to use this as a system version for <xref linkend="libgda"/>.
|
---|
| 172 | </para>
|
---|
[bdf24aa4] | 173 | </sect2>
|
---|
| 174 |
|
---|
[e2a0e91] | 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
| 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Program</segtitle>
|
---|
| 180 | <segtitle>Installed Library</segtitle>
|
---|
| 181 |
|
---|
| 182 | <seglistitem>
|
---|
| 183 | <seg>sqlite3</seg>
|
---|
[1f95134] | 184 | <seg>libsqlite3.so</seg>
|
---|
[e2a0e91] | 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="sqlite3">
|
---|
| 194 | <term><command>sqlite3</command></term>
|
---|
| 195 | <listitem>
|
---|
[a26f3f8f] | 196 | <para>
|
---|
| 197 | A terminal-based front-end to the <application>SQLite</application>
|
---|
| 198 | library that can evaluate queries interactively and display the
|
---|
| 199 | results.
|
---|
| 200 | </para>
|
---|
[e2a0e91] | 201 | <indexterm zone="sqlite sqlite3">
|
---|
| 202 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="libsqlite3">
|
---|
[1f95134] | 208 | <term><filename class='libraryfile'>libsqlite3.so</filename></term>
|
---|
[e2a0e91] | 209 | <listitem>
|
---|
[a26f3f8f] | 210 | <para>
|
---|
| 211 | contains the <application>SQLite</application> API functions.
|
---|
| 212 | </para>
|
---|
[e2a0e91] | 213 | <indexterm zone="sqlite libsqlite3">
|
---|
[1f95134] | 214 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
[e2a0e91] | 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 | </variablelist>
|
---|
| 219 | </sect2>
|
---|
| 220 | </sect1>
|
---|