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