-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL
46 lines (34 loc) · 1.95 KB
/
INSTALL
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
+----------------------------------------------------------------------+
| db2-hash-routines INSTALL |
+----------------------------------------------------------------------+
| Author: Helmut K. C. Tessarek |
+----------------------------------------------------------------------+
| Website: http://tessus.github.io/db2-hash-routines |
+----------------------------------------------------------------------+
1) Building the library
2) Registering the routines in the database as UDFs and SPs
3) Install the man pages
+----------------------------------------------------------------------+
| 1. Building the library |
+----------------------------------------------------------------------+
Please change the PATH settings in the makeudf scripts for your environment.
AIX / Linux : ./makertn
Win32 : makertn.bat
Other : see below
The script will also copy the library to the correct directory.
The routines are written in ANSI C and should compile on all platforms.
You can use the bldrtn script in your sqllib/samples/c directory as a good start.
The only thing that you have to do is to install APR and APR-util.
You can get APR and APR-util at http://apr.apache.org/
Furthermore you need to add the compiler and linker flags for APR (see makertn).
+----------------------------------------------------------------------+
| 2. Registering the routines in the database as UDFs and SPs |
+----------------------------------------------------------------------+
You have to connect to the database first.
db2 -td@ -f register.ddl
+----------------------------------------------------------------------+
| 3. Install the man pages |
+----------------------------------------------------------------------+
You need root acces to install the man pages.
cd man
./maninstall