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