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

« back to all changes in this revision

Viewing changes to drivers/mysql/dbd_mysql/x53.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-08-02 09:00:11 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802090011-j05v2349u2ptvg05
Tags: 0.8.2-1-4.1
* Non-maintainer upload with maintainer's approval.
* High urgency upload for RC bugfix.
* Pass --freetds-inc-dir to configure, to bypass the ridiculous upstream
  AC_FIND_FILE() checks for files that *aren't used during the build*;
  fixes a build failure with FreeTDS 0.82.  Closes: #493349.

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 mysql driver</TITLE
6
 
><META
7
 
NAME="GENERATOR"
8
 
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9
 
REL="HOME"
10
 
TITLE="mysql driver manual"
11
 
HREF="index.html"><LINK
12
 
REL="UP"
13
 
TITLE="Installation"
14
 
HREF="c36.html"><LINK
15
 
REL="PREVIOUS"
16
 
TITLE="Prerequisites"
17
 
HREF="x39.html"><LINK
18
 
REL="NEXT"
19
 
TITLE="Driver options"
20
 
HREF="c90.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
 
>mysql driver manual: A libdbi driver providing connectivity to MySQL databases using libmysqlclient.</TH
41
 
></TR
42
 
><TR
43
 
><TD
44
 
WIDTH="10%"
45
 
ALIGN="left"
46
 
VALIGN="bottom"
47
 
><A
48
 
HREF="x39.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="c90.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="AEN53"
77
 
>2.2. Build and install the mysql 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 mysql 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-mysql</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 an administrator username and password. This user can be any user who has database creation priveleges. Be sure to provide the name of a database which does not already exist (avoid 'test' which is used on many systems).</P
240
 
><DIV
241
 
CLASS="NOTE"
242
 
><BLOCKQUOTE
243
 
CLASS="NOTE"
244
 
><P
245
 
><B
246
 
>Note: </B
247
 
>If for some reason you need to re-create the autoconf/automake-related files, try running <B
248
 
CLASS="COMMAND"
249
 
>./autogen.sh</B
250
 
>. 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
251
 
CLASS="FILENAME"
252
 
>autogen.sh</TT
253
 
> so that it will catch the older autoconf version on your system.</P
254
 
></BLOCKQUOTE
255
 
></DIV
256
 
></DIV
257
 
><DIV
258
 
CLASS="NAVFOOTER"
259
 
><HR
260
 
ALIGN="LEFT"
261
 
WIDTH="100%"><TABLE
262
 
SUMMARY="Footer navigation table"
263
 
WIDTH="100%"
264
 
BORDER="0"
265
 
CELLPADDING="0"
266
 
CELLSPACING="0"
267
 
><TR
268
 
><TD
269
 
WIDTH="33%"
270
 
ALIGN="left"
271
 
VALIGN="top"
272
 
><A
273
 
HREF="x39.html"
274
 
ACCESSKEY="P"
275
 
>Prev</A
276
 
></TD
277
 
><TD
278
 
WIDTH="34%"
279
 
ALIGN="center"
280
 
VALIGN="top"
281
 
><A
282
 
HREF="index.html"
283
 
ACCESSKEY="H"
284
 
>Home</A
285
 
></TD
286
 
><TD
287
 
WIDTH="33%"
288
 
ALIGN="right"
289
 
VALIGN="top"
290
 
><A
291
 
HREF="c90.html"
292
 
ACCESSKEY="N"
293
 
>Next</A
294
 
></TD
295
 
></TR
296
 
><TR
297
 
><TD
298
 
WIDTH="33%"
299
 
ALIGN="left"
300
 
VALIGN="top"
301
 
>Prerequisites</TD
302
 
><TD
303
 
WIDTH="34%"
304
 
ALIGN="center"
305
 
VALIGN="top"
306
 
><A
307
 
HREF="c36.html"
308
 
ACCESSKEY="U"
309
 
>Up</A
310
 
></TD
311
 
><TD
312
 
WIDTH="33%"
313
 
ALIGN="right"
314
 
VALIGN="top"
315
 
>Driver options</TD
316
 
></TR
317
 
></TABLE
318
 
></DIV
319
 
></BODY
320
 
></HTML
321
 
>
 
 
b'\\ No newline at end of file'