[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 |
|
---|
[e5085ae1] | 7 | <!ENTITY sqlite-download-http "http://sqlite.org/sqlite-amalgamation-&sqlite-version;.tar.gz">
|
---|
[e2a0e91] | 8 | <!ENTITY sqlite-download-ftp " ">
|
---|
[7d564a1] | 9 | <!ENTITY sqlite-md5sum "74fe78b264f1c434c4b159d45b78e9b7">
|
---|
| 10 | <!ENTITY sqlite-size "1.5 MB">
|
---|
[0f0bfc1] | 11 | <!ENTITY sqlite-buildsize "30 MB (includes optional documentation)">
|
---|
[7d564a1] | 12 | <!ENTITY sqlite-time "0.4 SBU">
|
---|
[e5085ae1] | 13 |
|
---|
[7d564a1] | 14 | <!ENTITY sqlite-docs-version "3_7_3">
|
---|
| 15 | <!ENTITY sqlite-docs-md5sum "ed6f040910936cf57ad55045fa3bcb1d">
|
---|
| 16 | <!ENTITY sqlite-docs-size "3.2 MB">
|
---|
[e5085ae1] | 17 | <!ENTITY sqlite-docs-download "http://sqlite.org/sqlite_docs_&sqlite-docs-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 |
|
---|
[7d564a1] | 41 | &lfs67_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 |
|
---|
[e5085ae1] | 65 | <!-- <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 66 | <para role="optional"><xref linkend="tcl"/> (Required to run the test suite)</para> -->
|
---|
| 67 |
|
---|
[10e02da] | 68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 69 | <itemizedlist spacing="compact">
|
---|
| 70 | <title>Optional Documentation</title>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>Download (HTTP): <ulink url="&sqlite-docs-download;"/></para>
|
---|
| 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>Download MD5 sum: &sqlite-docs-md5sum;</para>
|
---|
| 76 | </listitem>
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>Download size: &sqlite-docs-size;</para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
[e2a0e91] | 81 |
|
---|
[780294af] | 82 | <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional"><xref linkend="unzip"/> (Required to unzip the documentation)</para>
|
---|
| 86 |
|
---|
[e2a0e91] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/sqlite"/></para>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of SQLite</title>
|
---|
| 94 |
|
---|
[e5085ae1] | 95 | <para>If you downloaded the optional documentation, issue the following
|
---|
| 96 | command to install the documentation into the source tree:</para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput>unzip -q ../sqlite_docs_&sqlite-docs-version;.zip</userinput></screen>
|
---|
| 99 |
|
---|
[e2a0e91] | 100 | <para>Install <application>SQLite</application> by running the following
|
---|
| 101 | commands:</para>
|
---|
| 102 |
|
---|
[7d564a1] | 103 | <screen><userinput>CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" \
|
---|
| 104 | ./configure --prefix=/usr \
|
---|
[0f0bfc1] | 105 | --enable-threadsafe \
|
---|
| 106 | --enable-readline \
|
---|
| 107 | --enable-dynamic-extensions &&
|
---|
[e2a0e91] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
[0f0bfc1] | 110 | <para>This package does not come with a test suite.</para>
|
---|
[e2a0e91] | 111 |
|
---|
| 112 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 113 |
|
---|
| 114 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 115 |
|
---|
[e5085ae1] | 116 | <para>If you downloaded the optional documentation, issue the following
|
---|
| 117 | commands as the <systemitem class="username">root</systemitem> user to
|
---|
| 118 | install it:</para>
|
---|
| 119 |
|
---|
[780294af] | 120 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
[e5085ae1] | 121 | cp -v -R sqlite-&sqlite-docs-version;-docs/* \
|
---|
[53fb87c4] | 122 | /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
[e5085ae1] | 123 |
|
---|
[e2a0e91] | 124 | </sect2>
|
---|
| 125 |
|
---|
[bdf24aa4] | 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
[7d564a1] | 129 | <para><parameter>CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"
|
---|
| 130 | </parameter>: Applications such as <application>firefox</application> require
|
---|
| 131 | secure delete and enable unlock notify to be turned on. The only way to do
|
---|
| 132 | this is to include them in the CFLAGS. By default, these are set to
|
---|
| 133 | <literal>"-g -O2"</literal> so we specify that to preserve those settings.
|
---|
| 134 | You may, of course, wish to omit the <literal>'-g'</literal> if you do not
|
---|
| 135 | wish to create debugging information. For further information on what can
|
---|
| 136 | be specified see <ulink url="http://www.sqlite.org/compile.html"/>.</para>
|
---|
| 137 |
|
---|
[bdf24aa4] | 138 | <para><parameter>--enable-threadsafe</parameter>: Though the documentation
|
---|
| 139 | and running <command>./configure --help</command> indicate that this is the
|
---|
| 140 | default, it is not. You must add this parameter if you want a threadsafe
|
---|
| 141 | library.</para>
|
---|
| 142 |
|
---|
[0be83d93] | 143 | <para><parameter>--enable-readline</parameter>: This parameter enables
|
---|
| 144 | command line editing capability to the <command>sqlite3</command>
|
---|
| 145 | program.</para>
|
---|
[0f0bfc1] | 146 |
|
---|
| 147 | <para><parameter>--enable-dynamic-extensions</parameter>: This creates
|
---|
| 148 | library modules that are dynamically linked as needed instead of statically
|
---|
| 149 | linking them into the main <application>SQLite</application> library.</para>
|
---|
| 150 |
|
---|
[bdf24aa4] | 151 | </sect2>
|
---|
| 152 |
|
---|
[e2a0e91] | 153 | <sect2 role="content">
|
---|
| 154 | <title>Contents</title>
|
---|
| 155 |
|
---|
| 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Program</segtitle>
|
---|
| 158 | <segtitle>Installed Library</segtitle>
|
---|
| 159 | <segtitle>Installed Directories</segtitle>
|
---|
| 160 |
|
---|
| 161 | <seglistitem>
|
---|
| 162 | <seg>sqlite3</seg>
|
---|
| 163 | <seg>libsqlite3.{so,a}</seg>
|
---|
| 164 | <seg>None</seg>
|
---|
| 165 | </seglistitem>
|
---|
| 166 | </segmentedlist>
|
---|
| 167 |
|
---|
| 168 | <variablelist>
|
---|
| 169 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 170 | <?dbfo list-presentation="list"?>
|
---|
| 171 | <?dbhtml list-presentation="table"?>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="sqlite3">
|
---|
| 174 | <term><command>sqlite3</command></term>
|
---|
| 175 | <listitem>
|
---|
| 176 | <para>A terminal-based front-end to the <application>SQLite
|
---|
| 177 | </application> library that can evaluate queries interactively
|
---|
| 178 | and display the results.</para>
|
---|
| 179 | <indexterm zone="sqlite sqlite3">
|
---|
| 180 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="libsqlite3">
|
---|
| 186 | <term><filename class='libraryfile'>libsqlite3.{so,a}</filename></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>Contains the <application>SQLite</application> API functions.</para>
|
---|
| 189 | <indexterm zone="sqlite libsqlite3">
|
---|
| 190 | <primary sortas="c-libsqlite3">libsqlite3.{so,a}</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | </variablelist>
|
---|
| 196 |
|
---|
| 197 | </sect2>
|
---|
| 198 |
|
---|
| 199 | </sect1>
|
---|