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