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 unixodbc-download-http "http://www.unixodbc.org/unixODBC-&unixodbc-version;.tar.gz">
|
---|
8 | <!ENTITY unixodbc-download-ftp "&gentoo-ftp-repo;/unixODBC-&unixodbc-version;.tar.gz">-->
|
---|
9 | <!ENTITY unixodbc-download-http " ">
|
---|
10 | <!ENTITY unixodbc-download-ftp "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-&unixodbc-version;.tar.gz">
|
---|
11 | <!ENTITY unixodbc-md5sum "06f76e034bb41df5233554abe961a16f">
|
---|
12 | <!ENTITY unixodbc-size "1.6 MB">
|
---|
13 | <!ENTITY unixodbc-buildsize "28 MB">
|
---|
14 | <!ENTITY unixodbc-time "0.2 SBU (using parallelism=4)">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="unixodbc" xreflabel="unixODBC-&unixodbc-version;">
|
---|
18 | <?dbhtml filename="unixodbc.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>unixODBC-&unixodbc-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="unixodbc">
|
---|
27 | <primary sortas="a-unixODBC">unixODBC</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to unixODBC</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | The <application>unixODBC</application> package is an Open Source
|
---|
35 | ODBC (Open DataBase Connectivity) sub-system and an ODBC SDK for Linux, Mac
|
---|
36 | OSX, and UNIX. ODBC is an open specification for providing application
|
---|
37 | developers with a predictable API with which to access data sources. Data
|
---|
38 | sources include optional SQL Servers and any data source with an ODBC Driver.
|
---|
39 | <application>unixODBC</application> contains the following components used
|
---|
40 | to assist with the manipulation of ODBC data sources: a driver manager, an
|
---|
41 | installer library and command line tool, command line tools to help install
|
---|
42 | a driver and work with SQL, drivers and driver setup libraries.
|
---|
43 | </para>
|
---|
44 |
|
---|
45 | &lfs110a_checked;
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (HTTP): <ulink url="&unixodbc-download-http;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download (FTP): <ulink url="&unixodbc-download-ftp;"/>
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download MD5 sum: &unixodbc-md5sum;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Download size: &unixodbc-size;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated disk space required: &unixodbc-buildsize;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Estimated build time: &unixodbc-time;
|
---|
77 | </para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">unixODBC Dependencies</bridgehead>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para role="optional">
|
---|
85 | <ulink url="http://www.hughes.com.au/products/msql/">Mini SQL</ulink> and
|
---|
86 | <xref linkend="pth"/>
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <para condition="html" role="usernotes">User Notes:
|
---|
90 | <ulink url="&blfs-wiki;/unixodbc"/></para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="installation">
|
---|
95 | <title>Installation of unixODBC</title>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | Install <application>unixODBC</application> by running the following
|
---|
99 | commands:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen><userinput>./configure --prefix=/usr \
|
---|
103 | --sysconfdir=/etc/unixODBC &&
|
---|
104 | make</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | This package does not come with a test suite.
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | <para>
|
---|
111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <screen role="root"><userinput>make install &&
|
---|
115 |
|
---|
116 | find doc -name "Makefile*" -delete &&
|
---|
117 | chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
|
---|
118 |
|
---|
119 | install -v -m755 -d /usr/share/doc/unixODBC-&unixodbc-version; &&
|
---|
120 | cp -v -R doc/* /usr/share/doc/unixODBC-&unixodbc-version;</userinput></screen>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="commands">
|
---|
125 | <title>Command Explanations</title>
|
---|
126 |
|
---|
127 | <para>
|
---|
128 | <option>--enable-drivers</option>: This parameter enables building
|
---|
129 | the drivers that were installed by default in previous versions.
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | <option>--enable-drivers-conf</option>: This parameter enables
|
---|
134 | building the driver configuration libraries that were installed
|
---|
135 | by default in previous versions.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | </sect2>
|
---|
139 |
|
---|
140 | <sect2 role="configuration">
|
---|
141 | <title>Configuring unixODBC</title>
|
---|
142 |
|
---|
143 | <sect3 id="unixodbc-config">
|
---|
144 | <title>Config Files</title>
|
---|
145 | <para>
|
---|
146 | <filename>/etc/unixODBC/*</filename>
|
---|
147 | </para>
|
---|
148 |
|
---|
149 | <indexterm zone="unixodbc unixodbc-config">
|
---|
150 | <primary sortas="e-etc-unixODBC-">/etc/unixODBC/*</primary>
|
---|
151 | </indexterm>
|
---|
152 | </sect3>
|
---|
153 |
|
---|
154 | <sect3><title>Configuration Information</title>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | The files in <filename class='directory'>/etc/unixODBC</filename>
|
---|
158 | are meant to be configured by the system administrator (or the ODBC site
|
---|
159 | administrator if appropriate privileges are granted to
|
---|
160 | <filename class='directory'>/etc/unixODBC</filename>). These files
|
---|
161 | are not meant to be directly edited. The ODBC installer library is
|
---|
162 | responsible for reading and writing the
|
---|
163 | <application>unixODBC</application> config files.
|
---|
164 | </para>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | Unfortunately, there are not many <command>man</command>, or any
|
---|
168 | <command>info</command> pages for the various programs available in the
|
---|
169 | <application>unixODBC</application> package. Along with the information
|
---|
170 | in the <quote>Short Descriptions</quote> below and the documentation
|
---|
171 | installed in <filename
|
---|
172 | class='directory'>/usr/share/doc/unixODBC-&unixodbc-version;</filename>,
|
---|
173 | there are many <filename>README</filename> files throughout the source
|
---|
174 | tree where the use and functionality of the programs can be found.
|
---|
175 | Additionally, you can use the parameter <option>-?</option> for syntax
|
---|
176 | and usage information. Lastly, the <application>unixODBC</application>
|
---|
177 | web site at <ulink url="http://www.unixodbc.org/"/> has very good
|
---|
178 | information.
|
---|
179 | </para>
|
---|
180 |
|
---|
181 | </sect3>
|
---|
182 |
|
---|
183 | </sect2>
|
---|
184 |
|
---|
185 | <sect2 role="content">
|
---|
186 | <title>Contents</title>
|
---|
187 |
|
---|
188 | <segmentedlist>
|
---|
189 | <segtitle>Installed Programs</segtitle>
|
---|
190 | <segtitle>Installed Libraries</segtitle>
|
---|
191 | <segtitle>Installed Directories</segtitle>
|
---|
192 |
|
---|
193 | <seglistitem>
|
---|
194 | <seg>
|
---|
195 | dltest, isql, iusql, odbc_config, odbcinst, and slencheck
|
---|
196 | </seg>
|
---|
197 | <seg>
|
---|
198 | libodbc.so, libodbccr.so, and libodbcinst.so
|
---|
199 | </seg>
|
---|
200 | <seg>
|
---|
201 | /etc/unixODBC and
|
---|
202 | /usr/share/doc/unixODBC-&unixodbc-version;
|
---|
203 | </seg>
|
---|
204 | </seglistitem>
|
---|
205 | </segmentedlist>
|
---|
206 |
|
---|
207 | <variablelist>
|
---|
208 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
209 | <?dbfo list-presentation="list"?>
|
---|
210 | <?dbhtml list-presentation="table"?>
|
---|
211 |
|
---|
212 | <varlistentry id="dltest">
|
---|
213 | <term><command>dltest</command></term>
|
---|
214 | <listitem>
|
---|
215 | <para>
|
---|
216 | is a utility used to check a shared library to see if it can be
|
---|
217 | loaded and if a given symbol exists in it
|
---|
218 | </para>
|
---|
219 | <indexterm zone="unixodbc dltest">
|
---|
220 | <primary sortas="b-dltest">dltest</primary>
|
---|
221 | </indexterm>
|
---|
222 | </listitem>
|
---|
223 | </varlistentry>
|
---|
224 |
|
---|
225 | <varlistentry id="isql">
|
---|
226 | <term><command>isql</command></term>
|
---|
227 | <listitem>
|
---|
228 | <para>
|
---|
229 | is a utility which can be used to submit SQL to a data source and
|
---|
230 | to format/output results. It can be used in batch or interactive
|
---|
231 | mode
|
---|
232 | </para>
|
---|
233 | <indexterm zone="unixodbc isql">
|
---|
234 | <primary sortas="b-isql">isql</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="iusql">
|
---|
240 | <term><command>iusql</command></term>
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | provides the same functionality as the <command>isql</command>
|
---|
244 | program
|
---|
245 | </para>
|
---|
246 | <indexterm zone="unixodbc iusql">
|
---|
247 | <primary sortas="b-iusql">iusql</primary>
|
---|
248 | </indexterm>
|
---|
249 | </listitem>
|
---|
250 | </varlistentry>
|
---|
251 |
|
---|
252 | <varlistentry id="odbc_config">
|
---|
253 | <term><command>odbc_config</command></term>
|
---|
254 | <listitem>
|
---|
255 | <para>
|
---|
256 | is used to find out details about the installation of
|
---|
257 | the <application>unixODBC</application> package
|
---|
258 | </para>
|
---|
259 | <indexterm zone="unixodbc odbc_config">
|
---|
260 | <primary sortas="b-odbc_config">odbc_config</primary>
|
---|
261 | </indexterm>
|
---|
262 | </listitem>
|
---|
263 | </varlistentry>
|
---|
264 |
|
---|
265 | <varlistentry id="odbcinst">
|
---|
266 | <term><command>odbcinst</command></term>
|
---|
267 | <listitem>
|
---|
268 | <para>
|
---|
269 | is a utility created for install script/RPM writers. It is a
|
---|
270 | command line interface to key functionality in the
|
---|
271 | <filename class="libraryfile">libodbcinst</filename> library. It does
|
---|
272 | not copy any files (i.e., libraries) but it will modify the ODBC
|
---|
273 | System Information for the user
|
---|
274 | </para>
|
---|
275 | <indexterm zone="unixodbc odbcinst">
|
---|
276 | <primary sortas="b-odbcinst">odbcinst</primary>
|
---|
277 | </indexterm>
|
---|
278 | </listitem>
|
---|
279 | </varlistentry>
|
---|
280 |
|
---|
281 | <varlistentry id="slencheck">
|
---|
282 | <term><command>slencheck</command></term>
|
---|
283 | <listitem>
|
---|
284 | <para>
|
---|
285 | is a utility which attempts to check whether an ODBC driver
|
---|
286 | was built with 32-bit or 64-bit SQLLEN types
|
---|
287 | </para>
|
---|
288 | <indexterm zone="unixodbc slencheck">
|
---|
289 | <primary sortas="b-slencheck">slencheck</primary>
|
---|
290 | </indexterm>
|
---|
291 | </listitem>
|
---|
292 | </varlistentry>
|
---|
293 |
|
---|
294 |
|
---|
295 | </variablelist>
|
---|
296 |
|
---|
297 | </sect2>
|
---|
298 |
|
---|
299 | </sect1>
|
---|