File: BUILD.unix

package info (click to toggle)
myodbc 5.1.6-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,096 kB
  • ctags: 2,202
  • sloc: ansic: 31,914; sh: 10,400; cpp: 3,472; xml: 1,328; makefile: 389; perl: 43
file content (108 lines) | stat: -rw-r--r-- 2,953 bytes parent folder | download
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
+-------------------------------------------------------------+
| Connector/ODBC                                              |
| UNIX Platforms                                              |
+-------------------------------------------------------------+

INTRODUCTION
---------------------------------------------------------------

In this document we provide a general explaination of how to 
build the MyODBC driver on UNIX platforms. We will be as brief 
as possible.

NOTE:	This information is fairly generic. You may find other
	README files with more detailed information for 
	building for specific flavours of UNIX.
	
WHAT YOU NEED
---------------------------------------------------------------

UNIX
----

UNIX or some UNIX-like operating system such as;

- Solaris
- Linux
- HP-UX
- AIX
- OSX

ODBC
----

You need an ODBC SDK and you probably want an ODBC Driver 
Manager. 

ODBC has not, traditionally, been a standard part of any UNIX 
or UNIX-like platform. This caused a number of vendors to 
provide ODBC solutions which can be added to UNIX. In theory 
this should not be a problem but in practice this can cause 
compatability and portability issues.

Recently; Linux distributions have been including unixODBC as a
standard option and Apple OSX now has an ODBC by default.

We recommend, and use, unixODBC on all UNIX-like platforms
except OSX where we use the default ODBC.

see;
	http://www.unixodbc.org

Compiler Tools
--------------

We try to build using the native compiler tool set for the 
target platform. This is SunStudio for Solaris and aCC for
HP-UX for example. But a common compiler across all platforms
is the GNU tool-chain.

Source Code
-----------

The source code is the main thing. You can get it from the bk
source repository if you want the 'bleeding edge' code but most
people will simply download the zip or tar-ball of the source.

Qt Class Library
----------------

The graphical bits of MyODBC are optional. If you plan to build
them you will need the Qt class library.

see;
	http://www.trolltech.com


BUILD
---------------------------------------------------------------

GNU AutoTools
-------------

cd to the MyODBC source directory and do the following.

Execute 'configure --help' to see a list of configure options then
execute configure again with the desired options.

Then do;

 $ make


INSTALL
---------------------------------------------------------------

You probably want to be root user to do install as extra 
privileges will likely be required. Now do the following to 
install the MyODBC libraries and tools.

# make install

At this point all of the MyODBC files should be in place but you
probably want to register the driver with the ODBC on your system.

See your ODBC documentation for more on how to do this. For
unixODBC one could run ODBCConfig from GUI as root or use the 
odbcinst command line tool. You may also want to look at the 
myodbc3i command-line tool for this.