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-download-http "http://sqlite.org/sqlite-amalgamation-&sqlite-version;.tar.gz">
|
---|
8 | <!ENTITY sqlite-download-ftp " ">
|
---|
9 | <!ENTITY sqlite-md5sum "8f1e86b3909a27f8122b0981afd16fcd">
|
---|
10 | <!ENTITY sqlite-size "1.4 MB">
|
---|
11 | <!ENTITY sqlite-buildsize "30 MB (includes optional documentation)">
|
---|
12 | <!ENTITY sqlite-time "0.5 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY sqlite-docs-version "3_6_23">
|
---|
15 | <!ENTITY sqlite-docs-download "http://sqlite.org/sqlite_docs_&sqlite-docs-version;.zip">
|
---|
16 | ]>
|
---|
17 |
|
---|
18 | <sect1 id="sqlite" xreflabel="SQLite-&sqlite-version;">
|
---|
19 | <?dbhtml filename="sqlite.html"?>
|
---|
20 |
|
---|
21 | <sect1info>
|
---|
22 | <othername>$LastChangedBy$</othername>
|
---|
23 | <date>$Date$</date>
|
---|
24 | </sect1info>
|
---|
25 |
|
---|
26 | <title>SQLite-&sqlite-version;</title>
|
---|
27 |
|
---|
28 | <indexterm zone="sqlite">
|
---|
29 | <primary sortas="a-SQLite">SQLite</primary>
|
---|
30 | </indexterm>
|
---|
31 |
|
---|
32 | <sect2 role="package">
|
---|
33 | <title>Introduction to SQLite</title>
|
---|
34 |
|
---|
35 | <para>The <application>SQLite</application> package is a software
|
---|
36 | library that implements a self-contained, serverless,
|
---|
37 | zero-configuration, transactional SQL database engine.</para>
|
---|
38 |
|
---|
39 | &lfs65_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&sqlite-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&sqlite-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &sqlite-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &sqlite-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &sqlite-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &sqlite-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <!-- <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
64 | <para role="optional"><xref linkend="tcl"/> (Required to run the test suite)</para> -->
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect4">Optional Documentation</bridgehead>
|
---|
67 | <para role="optional"><ulink url="&sqlite-docs-download;"/></para>
|
---|
68 |
|
---|
69 | <para condition="html" role="usernotes">User Notes:
|
---|
70 | <ulink url="&blfs-wiki;/sqlite"/></para>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 | <sect2 role="installation">
|
---|
75 | <title>Installation of SQLite</title>
|
---|
76 |
|
---|
77 | <para>If you downloaded the optional documentation, issue the following
|
---|
78 | command to install the documentation into the source tree:</para>
|
---|
79 |
|
---|
80 | <screen><userinput>unzip -q ../sqlite_docs_&sqlite-docs-version;.zip</userinput></screen>
|
---|
81 |
|
---|
82 | <para>Install <application>SQLite</application> by running the following
|
---|
83 | commands:</para>
|
---|
84 |
|
---|
85 | <screen><userinput>./configure --prefix=/usr \
|
---|
86 | --enable-threadsafe \
|
---|
87 | --enable-readline \
|
---|
88 | --enable-dynamic-extensions &&
|
---|
89 | make</userinput></screen>
|
---|
90 |
|
---|
91 | <para>This package does not come with a test suite.</para>
|
---|
92 |
|
---|
93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
94 |
|
---|
95 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
96 |
|
---|
97 | <para>If you downloaded the optional documentation, issue the following
|
---|
98 | commands as the <systemitem class="username">root</systemitem> user to
|
---|
99 | install it:</para>
|
---|
100 |
|
---|
101 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/sqlite-&sqlite-version; &
|
---|
102 | cp -v -R sqlite-&sqlite-docs-version;-docs/* \
|
---|
103 | /usr/share/doc/sqlite-&sqlite-version;</userinput></screen>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="commands">
|
---|
108 | <title>Command Explanations</title>
|
---|
109 |
|
---|
110 | <para><parameter>--enable-threadsafe</parameter>: Though the documentation
|
---|
111 | and running <command>./configure --help</command> indicate that this is the
|
---|
112 | default, it is not. You must add this parameter if you want a threadsafe
|
---|
113 | library.</para>
|
---|
114 |
|
---|
115 | <para><parameter>--enable-readline</parameter>: This parameter enables
|
---|
116 | command line editing capability to the <command>sqlite3</command>
|
---|
117 | program.</para>
|
---|
118 |
|
---|
119 | <para><parameter>--enable-dynamic-extensions</parameter>: This creates
|
---|
120 | library modules that are dynamically linked as needed instead of statically
|
---|
121 | linking them into the main <application>SQLite</application> library.</para>
|
---|
122 |
|
---|
123 | </sect2>
|
---|
124 |
|
---|
125 | <sect2 role="content">
|
---|
126 | <title>Contents</title>
|
---|
127 |
|
---|
128 | <segmentedlist>
|
---|
129 | <segtitle>Installed Program</segtitle>
|
---|
130 | <segtitle>Installed Library</segtitle>
|
---|
131 | <segtitle>Installed Directories</segtitle>
|
---|
132 |
|
---|
133 | <seglistitem>
|
---|
134 | <seg>sqlite3</seg>
|
---|
135 | <seg>libsqlite3.{so,a}</seg>
|
---|
136 | <seg>None</seg>
|
---|
137 | </seglistitem>
|
---|
138 | </segmentedlist>
|
---|
139 |
|
---|
140 | <variablelist>
|
---|
141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
142 | <?dbfo list-presentation="list"?>
|
---|
143 | <?dbhtml list-presentation="table"?>
|
---|
144 |
|
---|
145 | <varlistentry id="sqlite3">
|
---|
146 | <term><command>sqlite3</command></term>
|
---|
147 | <listitem>
|
---|
148 | <para>A terminal-based front-end to the <application>SQLite
|
---|
149 | </application> library that can evaluate queries interactively
|
---|
150 | and display the results.</para>
|
---|
151 | <indexterm zone="sqlite sqlite3">
|
---|
152 | <primary sortas="b-sqlite3">sqlite3</primary>
|
---|
153 | </indexterm>
|
---|
154 | </listitem>
|
---|
155 | </varlistentry>
|
---|
156 |
|
---|
157 | <varlistentry id="libsqlite3">
|
---|
158 | <term><filename class='libraryfile'>libsqlite3.{so,a}</filename></term>
|
---|
159 | <listitem>
|
---|
160 | <para>Contains the <application>SQLite</application> API functions.</para>
|
---|
161 | <indexterm zone="sqlite libsqlite3">
|
---|
162 | <primary sortas="c-libsqlite3">libsqlite3.{so,a}</primary>
|
---|
163 | </indexterm>
|
---|
164 | </listitem>
|
---|
165 | </varlistentry>
|
---|
166 |
|
---|
167 | </variablelist>
|
---|
168 |
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | </sect1>
|
---|