aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
blob: 4923913affc75c45557d0509eba8582ae58a2118 (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
* Generic installation instructions

To compile the binary, run make.  If the make fails due to not finding
MySQL headers or libraries, see `MySQL Location', below.

To install the package, run make install.  By default, make will
install the grot binary to /usr/bin, and the man pages to their
corresponding directories under /usr/man.  To change that, see
`Installation Location'.

* MySQL Location

The default make process looks for MySQL headers in
/usr/include/mysql or /usr/local/include/mysql and for MySQL libraries
in /usr/lib/mysql or /usr/local/lib/mysql.  This seems to match most
existing installations.  If, however, this fails for your
installation, use CPPFLAGS and LDFLAGS variables to point to the right
directories as described below.

- CPPFLAGS

The value of this variable is -I immediately followed by the name of
the directory where MySQL headers are located.  E.g.:

   make CPPFLAGS=-I/some/special/dir

This variable can contain several -Idir options separated by
whitespace.  Be sure to enclose the entire value in quotes, in that
case.

- LDFLAGS

The value of this variable is -L immediately followed by the name of
the directory where MySQL libraries are located.  E.g.:

   make LDFLAGS=-L/some/special/dir

Several -L options (or other linker flags) can be given, provided that
the entire value is properly quoted.

* Installation Location

The following make variables control the installation locations:

- prefix

Common installation prefix.  Default is /usr.

- bindir

The directory where to install binary files.  Default is /usr/bin.

- mandir

The directory where to install man pages.  Default is /usr/man.

For example, running: 

  make install prefix=/usr/local

will install the binary to /usr/local/bin/ and the man pages to
/usr/local/man.

* Other Make Variables

- CFLAGS

Compilator flags.  Default is -O2 -g.

- LIBS

Libraries to link with.  Default is -lmysqlclient.  This library is
required.


Local variables:
mode: outline
paragraph-separate: "[	]*$"
end:

Return to:

Send suggestions and report system problems to the System administrator.