blob: b5d5fe516ce64dfeb2d6f3467bef706ba2942f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Compiling psqlODBC on Unix</title>
</HEAD>
<body bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#a00000" alink="#0000ff">
<h1>Compiling psqlODBC on Unix</h1>
<p>Following psqlODBC's move away from the main PostgreSQL source tree, Peter Eisentraut was kind enough
provide a build environment for us which is now included in psqlODBC tarballs.</p>
<h2>Installation</h2>
<p>To install, just try something like:</p>
<blockquote>
<pre>
% tar -zxvf psqlodbc-xx.xx.xxxx.tar.gz
% cd psqlodbc-xx.xx.xxxx
% ./configure
% make
% make install
</pre>
</blockquote>
<p>The configure script will accept the following useful options:</p>
<ul>
<li>--with-libpq=DIR postgresql path (mandatory)</li>
<li>--with-unixodbc=DIR path or direct odbc_config file (default:yes)</li>
<li>--with-iodbc=DIR path or direct iodbc-config file</li>
<li>--with-odbcver=VERSION change default ODBC version number [0x0351]</li>
<li>--enable-pthreads (thread-safe driver on some platforms)</li>
<li>--disable-unicode (build non-Unicode driver)</li>
<li>--help</li>
</ul>
<h2>Building a distribution</h2>
<h3>Prerequisites</h3>
<ul>
<li>Autoconf 2.59 or higher</li>
<li>Automake 1.9.2 (Lower versions are rejected, version 1.7 untested.)</li>
<li>Libtool 1.5.10 or higher</li>
<li>PostgreSQL source tree (9.0 branch)</li>
</ul>
<h3>Bootstrapping</h3>
<blockquote>
<pre>
autoreconf -i
</pre>
</blockquote>
<p>You can run 'make maintainer-clean' to remove all the files this generates.</p>
<h3>Building</h3>
<blockquote>
<pre>
./configure
make
make install
</pre>
</blockquote>
<p>configure has the same options that the PostgreSQL configure used to
have for ODBC, namely --with-iodbc or --with-unixodbc
<h3>Making a Source Distribution</h3>
<p>'make dist' makes a file psqlodbc-xx.xx.xxxx.tar.gz. It's even better to
use 'make distcheck', which runs a number of tests to see if the
distribution is internally consistent.</p>
<p>The distribution does not contain any Windows-specific files (*.def,
maybe others). If it is desired to include them, edit Makefile.am.</p>
</body>
</html>
|