source: server/databases/sqlite.xml@ f91611f8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f91611f8 was f91611f8, checked in by DJ Lucas <dj@…>, 6 years ago

Correct SQLite build for FTS3/4. Fixes #9986.

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

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