source: server/databases/sqlite.xml@ f3765cfb

10.0 10.1 11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since f3765cfb was f3765cfb, checked in by Douglas R. Reno <renodr@…>, 17 months ago

Update to sqlite-3.32.1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23203 af4574ff-66df-0310-9fd7-8a98e5e911e0

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