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 |
|
---|
7 | <!ENTITY sqlite-dl-version "3210000">
|
---|
8 | <!ENTITY sqlite-doc-version "3210000">
|
---|
9 |
|
---|
10 | <!ENTITY sqlite-download-http "https://sqlite.org/2017/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
11 | <!ENTITY sqlite-download-ftp " ">
|
---|
12 | <!ENTITY sqlite-md5sum "7913de4c3126ba3c24689cb7a199ea31">
|
---|
13 | <!ENTITY sqlite-size "2.5 MB">
|
---|
14 | <!ENTITY sqlite-buildsize "79 MB">
|
---|
15 | <!ENTITY sqlite-time "0.3 SBU">
|
---|
16 |
|
---|
17 | <!ENTITY sqlite-docs-download "https://sqlite.org/2017/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
18 | <!ENTITY sqlite-docs-md5sum "082aa03bc43b6e00db9787b30a2efa4f">
|
---|
19 | <!ENTITY sqlite-docs-size "5.6 MB">
|
---|
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 |
|
---|
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>
|
---|
44 |
|
---|
45 | &lfs81_checked;
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (HTTP): <ulink url="&sqlite-download-http;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download (FTP): <ulink url="&sqlite-download-ftp;"/>
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download MD5 sum: &sqlite-md5sum;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Download size: &sqlite-size;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated disk space required: &sqlite-buildsize;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Estimated build time: &sqlite-time;
|
---|
77 | </para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
82 | <itemizedlist spacing="compact">
|
---|
83 | <title>Optional Documentation</title>
|
---|
84 | <listitem>
|
---|
85 | <para>
|
---|
86 | Download (HTTP): <ulink url="&sqlite-docs-download;"/>
|
---|
87 | </para>
|
---|
88 | </listitem>
|
---|
89 | <listitem>
|
---|
90 | <para>
|
---|
91 | Download MD5 sum: &sqlite-docs-md5sum;
|
---|
92 | </para>
|
---|
93 | </listitem>
|
---|
94 | <listitem>
|
---|
95 | <para>
|
---|
96 | Download size: &sqlite-docs-size;
|
---|
97 | </para>
|
---|
98 | </listitem>
|
---|
99 | </itemizedlist>
|
---|
100 |
|
---|
101 | <bridgehead renderas="sect3">SQLite Dependencies</bridgehead>
|
---|
102 |
|
---|
103 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
104 | <para role="optional">
|
---|
105 | <ulink url="http://www.thrysoee.dk/editline/">libedit</ulink> and
|
---|
106 | <xref linkend="unzip"/> (required to unzip the documentation)
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para condition="html" role="usernotes">
|
---|
110 | User Notes: <ulink url="&blfs-wiki;/sqlite"/>
|
---|
111 | </para>
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="installation">
|
---|
115 | <title>Installation of SQLite</title>
|
---|
116 |
|
---|
117 | <para>
|
---|
118 | If you downloaded the optional documentation, issue the following command
|
---|
119 | to install the documentation into the source tree:
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | Install <application>SQLite</application> by running the following
|
---|
126 | commands:
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | <screen><userinput>./configure --prefix=/usr --disable-static \
|
---|
130 | --enable-fts3 --enable-fts4 \
|
---|
131 | --enable-fts5 CFLAGS="-g -O2 \
|
---|
132 | -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
133 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
134 | -DSQLITE_SECURE_DELETE=1 \
|
---|
135 | -DSQLITE_ENABLE_DBSTAT_VTAB=1" &&
|
---|
136 | make</userinput></screen>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | This package does not come with a test suite.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | If you downloaded the optional documentation, issue the following commands
|
---|
150 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
154 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | <sect2 role="commands">
|
---|
159 | <title>Command Explanations</title>
|
---|
160 |
|
---|
161 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
162 | href="../../xincludes/static-libraries.xml"/>
|
---|
163 |
|
---|
164 | <para>
|
---|
165 | <parameter>--enable-fts*</parameter>: enable all three full text search
|
---|
166 | extensions.
|
---|
167 | </para>
|
---|
168 |
|
---|
169 | <para>
|
---|
170 | <parameter>CFLAGS="-g -O2
|
---|
171 | -DSQLITE_ENABLE_COLUMN_METADATA=1
|
---|
172 | -DSQLITE_SECURE_DELETE
|
---|
173 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
---|
174 | -DSQLITE_ENABLE_DBSTAT_VTAB=1"</parameter>: Applications such as
|
---|
175 | <application>Firefox</application> require secure delete and enable
|
---|
176 | unlock notify to be turned on.
|
---|
177 | Since <application>firefox-41</application> the dbstat virtual
|
---|
178 | table is also required. The only way to do this is to include them in the
|
---|
179 | CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
|
---|
180 | specify that to preserve those settings. You may, of course, wish to omit
|
---|
181 | the <literal>'-g'</literal> if you do not wish to create debugging
|
---|
182 | information. For further information on what can be specified see <ulink
|
---|
183 | url="http://www.sqlite.org/compile.html"/>.
|
---|
184 | </para>
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="content">
|
---|
189 | <title>Contents</title>
|
---|
190 |
|
---|
191 | <segmentedlist>
|
---|
192 | <segtitle>Installed Program</segtitle>
|
---|
193 | <segtitle>Installed Library</segtitle>
|
---|
194 | <segtitle>Installed Directory</segtitle>
|
---|
195 |
|
---|
196 | <seglistitem>
|
---|
197 | <seg>
|
---|
198 | sqlite3
|
---|
199 | </seg>
|
---|
200 | <seg>
|
---|
201 | libsqlite3.so
|
---|
202 | </seg>
|
---|
203 | <seg>
|
---|
204 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
205 | </seg>
|
---|
206 | </seglistitem>
|
---|
207 | </segmentedlist>
|
---|
208 |
|
---|
209 | <variablelist>
|
---|
210 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
211 | <?dbfo list-presentation="list"?>
|
---|
212 | <?dbhtml list-presentation="table"?>
|
---|
213 |
|
---|
214 | <varlistentry id="sqlite3">
|
---|
215 | <term><command>sqlite3</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>
|
---|
218 | A terminal-based front-end to the <application>SQLite</application>
|
---|
219 | library that can evaluate queries interactively and display the
|
---|
220 | results.
|
---|
221 | </para>
|
---|
222 | <indexterm zone="sqlite sqlite3">
|
---|
223 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="libsqlite3">
|
---|
229 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | contains the <application>SQLite</application> API functions.
|
---|
233 | </para>
|
---|
234 | <indexterm zone="sqlite libsqlite3">
|
---|
235 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | </variablelist>
|
---|
241 |
|
---|
242 | </sect2>
|
---|
243 |
|
---|
244 | </sect1>
|
---|