~ubuntu-branches/ubuntu/precise/libdbi-drivers/precise

« back to all changes in this revision

Viewing changes to drivers/sqlite/dbd_sqlite/x60.html

  • Committer: Bazaar Package Importer
  • Author(s): David Parker
  • Date: 2004-02-01 14:33:06 UTC
  • Revision ID: james.westby@ubuntu.com-20040201143306-pmwubrx4d4jrq7om
Tags: upstream-0.7.1
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Build and install the sqlite driver</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
 
9
REL="HOME"
 
10
TITLE="sqlite driver manual"
 
11
HREF="index.html"><LINK
 
12
REL="UP"
 
13
TITLE="Installation"
 
14
HREF="c43.html"><LINK
 
15
REL="PREVIOUS"
 
16
TITLE="Prerequisites"
 
17
HREF="x46.html"><LINK
 
18
REL="NEXT"
 
19
TITLE="Driver options"
 
20
HREF="c98.html"></HEAD
 
21
><BODY
 
22
CLASS="SECT1"
 
23
BGCOLOR="#FFFFFF"
 
24
TEXT="#000000"
 
25
LINK="#0000FF"
 
26
VLINK="#840084"
 
27
ALINK="#0000FF"
 
28
><DIV
 
29
CLASS="NAVHEADER"
 
30
><TABLE
 
31
SUMMARY="Header navigation table"
 
32
WIDTH="100%"
 
33
BORDER="0"
 
34
CELLPADDING="0"
 
35
CELLSPACING="0"
 
36
><TR
 
37
><TH
 
38
COLSPAN="3"
 
39
ALIGN="center"
 
40
>sqlite driver manual: A libdbi driver using the SQLite embedded database engine</TH
 
41
></TR
 
42
><TR
 
43
><TD
 
44
WIDTH="10%"
 
45
ALIGN="left"
 
46
VALIGN="bottom"
 
47
><A
 
48
HREF="x46.html"
 
49
ACCESSKEY="P"
 
50
>Prev</A
 
51
></TD
 
52
><TD
 
53
WIDTH="80%"
 
54
ALIGN="center"
 
55
VALIGN="bottom"
 
56
>Chapter 2. Installation</TD
 
57
><TD
 
58
WIDTH="10%"
 
59
ALIGN="right"
 
60
VALIGN="bottom"
 
61
><A
 
62
HREF="c98.html"
 
63
ACCESSKEY="N"
 
64
>Next</A
 
65
></TD
 
66
></TR
 
67
></TABLE
 
68
><HR
 
69
ALIGN="LEFT"
 
70
WIDTH="100%"></DIV
 
71
><DIV
 
72
CLASS="SECT1"
 
73
><H1
 
74
CLASS="SECT1"
 
75
><A
 
76
NAME="AEN60"
 
77
>2.2. Build and install the sqlite driver</A
 
78
></H1
 
79
><P
 
80
>First you have to unpack the libdbi-drivers archive in a suitable directory. Unpacking will create a new subdirectory <TT
 
81
CLASS="FILENAME"
 
82
>libdbi-drivers-X.Y</TT
 
83
> where "X.Y" denotes the version:</P
 
84
><TABLE
 
85
BORDER="0"
 
86
BGCOLOR="#000000"
 
87
WIDTH="100%"
 
88
><TR
 
89
><TD
 
90
><FONT
 
91
COLOR="#32CD32"
 
92
><PRE
 
93
CLASS="SCREEN"
 
94
><SAMP
 
95
CLASS="PROMPT"
 
96
>$ </SAMP
 
97
><KBD
 
98
CLASS="USERINPUT"
 
99
>tar -xzf libdbi-drivers-0.3.tar.gz</KBD
 
100
></PRE
 
101
></FONT
 
102
></TD
 
103
></TR
 
104
></TABLE
 
105
><P
 
106
>The libdbi-drivers project consists of several drivers that use a common build system. Therefore you <EM
 
107
>must</EM
 
108
> tell configure explicitly that you want to build the sqlite driver (you can list as many drivers as you want to build):</P
 
109
><TABLE
 
110
BORDER="0"
 
111
BGCOLOR="#000000"
 
112
WIDTH="100%"
 
113
><TR
 
114
><TD
 
115
><FONT
 
116
COLOR="#32CD32"
 
117
><PRE
 
118
CLASS="SCREEN"
 
119
><SAMP
 
120
CLASS="PROMPT"
 
121
>$ </SAMP
 
122
><KBD
 
123
CLASS="USERINPUT"
 
124
>cd libdbi-drivers</KBD
 
125
></PRE
 
126
></FONT
 
127
></TD
 
128
></TR
 
129
></TABLE
 
130
><TABLE
 
131
BORDER="0"
 
132
BGCOLOR="#000000"
 
133
WIDTH="100%"
 
134
><TR
 
135
><TD
 
136
><FONT
 
137
COLOR="#32CD32"
 
138
><PRE
 
139
CLASS="SCREEN"
 
140
><SAMP
 
141
CLASS="PROMPT"
 
142
>$ </SAMP
 
143
><KBD
 
144
CLASS="USERINPUT"
 
145
>./configure --with-sqlite</KBD
 
146
></PRE
 
147
></FONT
 
148
></TD
 
149
></TR
 
150
></TABLE
 
151
><P
 
152
>Run <B
 
153
CLASS="COMMAND"
 
154
>./configure --help</B
 
155
> to find out about additional options.</P
 
156
><P
 
157
>Then build the driver with the command:</P
 
158
><TABLE
 
159
BORDER="0"
 
160
BGCOLOR="#000000"
 
161
WIDTH="100%"
 
162
><TR
 
163
><TD
 
164
><FONT
 
165
COLOR="#32CD32"
 
166
><PRE
 
167
CLASS="SCREEN"
 
168
><SAMP
 
169
CLASS="PROMPT"
 
170
>$ </SAMP
 
171
><KBD
 
172
CLASS="USERINPUT"
 
173
>make</KBD
 
174
></PRE
 
175
></FONT
 
176
></TD
 
177
></TR
 
178
></TABLE
 
179
><DIV
 
180
CLASS="NOTE"
 
181
><BLOCKQUOTE
 
182
CLASS="NOTE"
 
183
><P
 
184
><B
 
185
>Note: </B
 
186
>Please note that you may have to invoke <B
 
187
CLASS="COMMAND"
 
188
>gmake</B
 
189
>, the GNU version of make, on some systems.</P
 
190
></BLOCKQUOTE
 
191
></DIV
 
192
><P
 
193
>Then install the driver with the command (you'll need root permissions to do this):</P
 
194
><TABLE
 
195
BORDER="0"
 
196
BGCOLOR="#000000"
 
197
WIDTH="100%"
 
198
><TR
 
199
><TD
 
200
><FONT
 
201
COLOR="#32CD32"
 
202
><PRE
 
203
CLASS="SCREEN"
 
204
><SAMP
 
205
CLASS="PROMPT"
 
206
>$ </SAMP
 
207
><KBD
 
208
CLASS="USERINPUT"
 
209
>make install</KBD
 
210
></PRE
 
211
></FONT
 
212
></TD
 
213
></TR
 
214
></TABLE
 
215
><P
 
216
>To test the operation of the newly installed driver, use the command:</P
 
217
><TABLE
 
218
BORDER="0"
 
219
BGCOLOR="#000000"
 
220
WIDTH="100%"
 
221
><TR
 
222
><TD
 
223
><FONT
 
224
COLOR="#32CD32"
 
225
><PRE
 
226
CLASS="SCREEN"
 
227
><SAMP
 
228
CLASS="PROMPT"
 
229
>$ </SAMP
 
230
><KBD
 
231
CLASS="USERINPUT"
 
232
>make check</KBD
 
233
></PRE
 
234
></FONT
 
235
></TD
 
236
></TR
 
237
></TABLE
 
238
><P
 
239
>This command creates and runs a test program that performs a few basic input and output tests. The program will ask for a database name. This can be any name that is a valid filename on your system. It will also ask for a data directory. This is the directory that is used to create the test database. Needless to say that you need write access to that directory. If you accept the default ".", the database will be created in the <TT
 
240
CLASS="FILENAME"
 
241
>tests</TT
 
242
> subdirectory.</P
 
243
><DIV
 
244
CLASS="NOTE"
 
245
><BLOCKQUOTE
 
246
CLASS="NOTE"
 
247
><P
 
248
><B
 
249
>Note: </B
 
250
>If for some reason you need to re-create the autoconf/automake-related files, try running <B
 
251
CLASS="COMMAND"
 
252
>./autogen.sh</B
 
253
>. I've found out that the current stable autoconf/automake/libtool versions (as found in FreeBSD 4.7 and Debian 3.0) do not cooperate well, so I found it necessary to run the older autoconf 2.13. If necessary, edit <TT
 
254
CLASS="FILENAME"
 
255
>autogen.sh</TT
 
256
> so that it will catch the older autoconf version on your system.</P
 
257
></BLOCKQUOTE
 
258
></DIV
 
259
></DIV
 
260
><DIV
 
261
CLASS="NAVFOOTER"
 
262
><HR
 
263
ALIGN="LEFT"
 
264
WIDTH="100%"><TABLE
 
265
SUMMARY="Footer navigation table"
 
266
WIDTH="100%"
 
267
BORDER="0"
 
268
CELLPADDING="0"
 
269
CELLSPACING="0"
 
270
><TR
 
271
><TD
 
272
WIDTH="33%"
 
273
ALIGN="left"
 
274
VALIGN="top"
 
275
><A
 
276
HREF="x46.html"
 
277
ACCESSKEY="P"
 
278
>Prev</A
 
279
></TD
 
280
><TD
 
281
WIDTH="34%"
 
282
ALIGN="center"
 
283
VALIGN="top"
 
284
><A
 
285
HREF="index.html"
 
286
ACCESSKEY="H"
 
287
>Home</A
 
288
></TD
 
289
><TD
 
290
WIDTH="33%"
 
291
ALIGN="right"
 
292
VALIGN="top"
 
293
><A
 
294
HREF="c98.html"
 
295
ACCESSKEY="N"
 
296
>Next</A
 
297
></TD
 
298
></TR
 
299
><TR
 
300
><TD
 
301
WIDTH="33%"
 
302
ALIGN="left"
 
303
VALIGN="top"
 
304
>Prerequisites</TD
 
305
><TD
 
306
WIDTH="34%"
 
307
ALIGN="center"
 
308
VALIGN="top"
 
309
><A
 
310
HREF="c43.html"
 
311
ACCESSKEY="U"
 
312
>Up</A
 
313
></TD
 
314
><TD
 
315
WIDTH="33%"
 
316
ALIGN="right"
 
317
VALIGN="top"
 
318
>Driver options</TD
 
319
></TR
 
320
></TABLE
 
321
></DIV
 
322
></BODY
 
323
></HTML
 
324
>
 
 
b'\\ No newline at end of file'