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 "3080600">
|
---|
8 | <!ENTITY sqlite-doc-version "3080600">
|
---|
9 |
|
---|
10 | <!ENTITY sqlite-download-http
|
---|
11 | "http://sqlite.org/2014/sqlite-autoconf-&sqlite-dl-version;.tar.gz">
|
---|
12 | <!ENTITY sqlite-download-ftp " ">
|
---|
13 | <!ENTITY sqlite-md5sum "f7e4a156b583abeba349629e2364224b">
|
---|
14 | <!ENTITY sqlite-size "1.9 MB">
|
---|
15 | <!ENTITY sqlite-buildsize "16 MB (additional 24 MB for the Optional Documentation)">
|
---|
16 | <!ENTITY sqlite-time "0.2 SBU">
|
---|
17 |
|
---|
18 | <!ENTITY sqlite-docs-download
|
---|
19 | "http://sqlite.org/2014/sqlite-doc-&sqlite-doc-version;.zip">
|
---|
20 | <!ENTITY sqlite-docs-md5sum "e65b1a9569d3e3129538942255db0af1">
|
---|
21 | <!ENTITY sqlite-docs-size "4.6 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 | &lfs76_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 | <xref linkend="tcl"/> (required to build <application>SQLite Tcl
|
---|
108 | Extension Architecture - TEA</application>, also know as
|
---|
109 | <application>sqlite-tcl</application>) and
|
---|
110 | <xref linkend="unzip"/> (required to unzip the documentation)
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para condition="html" role="usernotes">
|
---|
114 | User Notes: <ulink url="&blfs-wiki;/sqlite"/>
|
---|
115 | </para>
|
---|
116 | </sect2>
|
---|
117 |
|
---|
118 | <sect2 role="installation">
|
---|
119 | <title>Installation of SQLite</title>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | If you downloaded the optional documentation, issue the following command
|
---|
123 | to install the documentation into the source tree:
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <screen><userinput>unzip -q ../sqlite-doc-&sqlite-doc-version;.zip</userinput></screen>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Install <application>SQLite</application> by running the following
|
---|
130 | commands:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen><userinput>./configure --prefix=/usr --disable-static \
|
---|
134 | CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 \
|
---|
135 | -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
---|
136 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
---|
137 | -DSQLITE_SECURE_DELETE=1" &&
|
---|
138 | make</userinput></screen>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | If you wish to install <application>sqlite-tcl</application>, run the
|
---|
142 | following commands:
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <screen><userinput>cd tea &&
|
---|
146 | ./configure --prefix=/usr --with-system-sqlite &&
|
---|
147 | make &&
|
---|
148 | cd ..</userinput></screen>
|
---|
149 |
|
---|
150 | <para>
|
---|
151 | This package does not come with a test suite.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | If you downloaded the optional documentation, issue the following commands
|
---|
162 | as the <systemitem class="username">root</systemitem> user to install it:
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &&
|
---|
166 | cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
167 |
|
---|
168 | <para>
|
---|
169 | If you decided to install <application>sqlite-tcl</application>, issue
|
---|
170 | the following commands as the
|
---|
171 | <systemitem class="username">root</systemitem> user:
|
---|
172 | </para>
|
---|
173 |
|
---|
174 | <screen><userinput>cd tea &&
|
---|
175 | make install &&
|
---|
176 | cd ..</userinput></screen>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="commands">
|
---|
181 | <title>Command Explanations</title>
|
---|
182 |
|
---|
183 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
184 | href="../../xincludes/static-libraries.xml"/>
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | <parameter>CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1
|
---|
188 | -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE
|
---|
189 | -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"</parameter>: Applications such as
|
---|
190 | <application>Firefox</application> require secure delete and enable unlock
|
---|
191 | notify to be turned on. The only way to do this is to include them in the
|
---|
192 | CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
|
---|
193 | specify that to preserve those settings. You may, of course, wish to omit
|
---|
194 | the <literal>'-g'</literal> if you do not wish to create debugging
|
---|
195 | information. For further information on what can be specified see
|
---|
196 | <ulink url="http://www.sqlite.org/compile.html"/>.
|
---|
197 | </para>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="content">
|
---|
202 | <title>Contents</title>
|
---|
203 |
|
---|
204 | <segmentedlist>
|
---|
205 | <segtitle>Installed Program</segtitle>
|
---|
206 | <segtitle>Installed Libraries</segtitle>
|
---|
207 | <segtitle>Installed Directories</segtitle>
|
---|
208 |
|
---|
209 | <seglistitem>
|
---|
210 | <seg>
|
---|
211 | sqlite3
|
---|
212 | </seg>
|
---|
213 | <seg>
|
---|
214 | libsqlite3.so and (optionally)
|
---|
215 | /usr/lib/sqlite&sqlite-version;/libsqlite&sqlite-version;.so
|
---|
216 | </seg>
|
---|
217 | <seg>
|
---|
218 | /usr/lib/sqlite&sqlite-version; (optionally) and
|
---|
219 | /usr/share/doc/sqlite-&sqlite-version;
|
---|
220 | </seg>
|
---|
221 | </seglistitem>
|
---|
222 | </segmentedlist>
|
---|
223 |
|
---|
224 | <variablelist>
|
---|
225 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
226 | <?dbfo list-presentation="list"?>
|
---|
227 | <?dbhtml list-presentation="table"?>
|
---|
228 |
|
---|
229 | <varlistentry id="sqlite3">
|
---|
230 | <term><command>sqlite3</command></term>
|
---|
231 | <listitem>
|
---|
232 | <para>
|
---|
233 | A terminal-based front-end to the <application>SQLite</application>
|
---|
234 | library that can evaluate queries interactively and display the
|
---|
235 | results.
|
---|
236 | </para>
|
---|
237 | <indexterm zone="sqlite sqlite3">
|
---|
238 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
239 | </indexterm>
|
---|
240 | </listitem>
|
---|
241 | </varlistentry>
|
---|
242 |
|
---|
243 | <varlistentry id="libsqlite3">
|
---|
244 | <term><filename class="libraryfile">libsqlite3.so</filename></term>
|
---|
245 | <listitem>
|
---|
246 | <para>
|
---|
247 | contains the <application>SQLite</application> API functions.
|
---|
248 | </para>
|
---|
249 | <indexterm zone="sqlite libsqlite3">
|
---|
250 | <primary sortas="c-libsqlite3">libsqlite3.so</primary>
|
---|
251 | </indexterm>
|
---|
252 | </listitem>
|
---|
253 | </varlistentry>
|
---|
254 |
|
---|
255 | </variablelist>
|
---|
256 |
|
---|
257 | </sect2>
|
---|
258 |
|
---|
259 | </sect1>
|
---|