INSTALL 3.76 KB
Newer Older
1
Making and Installing the OpenLDAP Distribution
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
===============================================
Kurt Zeilenga's avatar
Kurt Zeilenga committed
3

Kurt Zeilenga's avatar
Kurt Zeilenga committed
4
This file provides brief instructions on how to build and install
5
6
7
OpenLDAP on UNIX (and UNIX-like) system.  More detailed information
and instructions can be found in The OpenLDAP Administrator's Guide
(http://www.openldap.org/doc/admin/).
Kurt Zeilenga's avatar
Kurt Zeilenga committed
8

Kurt Zeilenga's avatar
Kurt Zeilenga committed
9
10
It is recommended that you read, or at least skim through, ALL of the
instructions in this file before attempting to build the software.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11

Kurt Zeilenga's avatar
Kurt Zeilenga committed
12
It is also recommended you review The OpenLDAP Administrator's Guide
13
14
15
16
17
(http://www.openldap.org/doc/admin/), the Frequently Asked Questions
(http://www.openldap.org/faq/) pages, in particular the Installation
section (http://www.openldap.org/faq/index.cgi?file=8) and Platform
Hints (http://www.openldap.org/faq/index.cgi?file=9) should be
examined.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
18

Kurt Zeilenga's avatar
Kurt Zeilenga committed
19
20
Making and Installing the OpenLDAP Distribution
-----------------------------------------------
Kurt Zeilenga's avatar
Kurt Zeilenga committed
21

Kurt Zeilenga's avatar
Kurt Zeilenga committed
22
1.   Unpack the distribution and change directory:
Kurt Zeilenga's avatar
Kurt Zeilenga committed
23

Kurt Zeilenga's avatar
Kurt Zeilenga committed
24
25
        % tar xfz openldap-VERSION.tgz
        % cd openldap-VERSION
26

Kurt Zeilenga's avatar
Kurt Zeilenga committed
27
28
     (replacing VERSION with the appropriate version string).  If you
     are reading this file, you probably have already done this!
Kurt Zeilenga's avatar
Kurt Zeilenga committed
29

Kurt Zeilenga's avatar
Kurt Zeilenga committed
30
2.   Type:
Kurt Zeilenga's avatar
Kurt Zeilenga committed
31

Kurt Zeilenga's avatar
Kurt Zeilenga committed
32
        % ./configure --help
Kurt Zeilenga's avatar
Kurt Zeilenga committed
33

Kurt Zeilenga's avatar
Kurt Zeilenga committed
34
35
     to list available configuration options.   A description of these
     options is provided in the 'CONFIGURE OPTIONS' section below.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
36

Kurt Zeilenga's avatar
Kurt Zeilenga committed
37
     The configure script uses environmental variables for determining
38
     compiler/linker options including:
Kurt Zeilenga's avatar
Kurt Zeilenga committed
39

40
        Variable        Description     Example
Kurt Zeilenga's avatar
Kurt Zeilenga committed
41
42
43
44
45
46
        CC              C compiler      gcc
        CFLAGS          C flags         -O -g
        CPPFLAGS        cpp flags       -I/path/include -Ddef
        LDFLAGS         ld flags        -L/usr/local/lib
        LIBS            libraries       -llib
        PATH            command path    /usr/local/bin:/usr/bin:/bin
Kurt Zeilenga's avatar
Kurt Zeilenga committed
47

Kurt Zeilenga's avatar
Kurt Zeilenga committed
48
3.   Configure the build system
Kurt Zeilenga's avatar
Kurt Zeilenga committed
49

Kurt Zeilenga's avatar
Kurt Zeilenga committed
50
        % [env settings] ./configure [options]
Kurt Zeilenga's avatar
Kurt Zeilenga committed
51

Kurt Zeilenga's avatar
Kurt Zeilenga committed
52
53
54
     If all goes well, the configure script with automatically detect
     the appropriate settings.  However, you may need to specify
     options and/or environment variables to obtain desired results.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
55

Kurt Zeilenga's avatar
Kurt Zeilenga committed
56
4.   Build dependencies
57

Kurt Zeilenga's avatar
Kurt Zeilenga committed
58
        % make depend
59

Kurt Zeilenga's avatar
Kurt Zeilenga committed
60
5.   Build the system
61

Kurt Zeilenga's avatar
Kurt Zeilenga committed
62
        % make
63

Kurt Zeilenga's avatar
Kurt Zeilenga committed
64
65
66
67
     If all goes well, the system will build as configured.  If not,
     return to step 3 after reviewing the configuration settings.  You
     may want to consult the Platform Hints subsection of the FAQ if
     you have not done so already.
68

Kurt Zeilenga's avatar
Kurt Zeilenga committed
69
6.   Test the standalone system
70

Kurt Zeilenga's avatar
Kurt Zeilenga committed
71
72
     This step requires the standalone LDAP server, slapd(8), with
     LDBM support.
73

Kurt Zeilenga's avatar
Kurt Zeilenga committed
74
        % make test
Kurt Zeilenga's avatar
Kurt Zeilenga committed
75

Kurt Zeilenga's avatar
Kurt Zeilenga committed
76
77
78
79
     If all goes well, the system has been built as configured.  If
     not, return to step 4 after reviewing your configuration
     settings.  You may want to consult the Installation section of
     the FAQ if you have not done so already.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
80

81
82
83
7.   install the binaries and man pages.  You may need to be come the
     super-user (e.g. root) to do this (depending on where you are
     installing things):
Kurt Zeilenga's avatar
Kurt Zeilenga committed
84

Kurt Zeilenga's avatar
Kurt Zeilenga committed
85
        % su root -c 'make install'
86

Kurt Zeilenga's avatar
Kurt Zeilenga committed
87
8.   That's it!
Kurt Zeilenga's avatar
Kurt Zeilenga committed
88

89
90
91
92
93
See the OpenLDAP Administrator's Guide and the manual pages for the
individual applications for configuration and use information. You may
also want to edit the configuration files used by the various
components.  These configuration files are located in the OpenLDAP
configuration directory (normally /usr/local/etc/openldap).
94

Kurt Zeilenga's avatar
Kurt Zeilenga committed
95
96
97
98
99
100
        ldap.conf               client defaults
        ldapfilter.conf         search filter configuration
        ldapsearchprefs.conf    search object definitions
        ldaptemplates.conf      display template definitions
        slapd.conf              Standalone LDAP daemon
        schema/*.schema         Schema Definitions
101

Kurt Zeilenga's avatar
Kurt Zeilenga committed
102
End of OpenLDAP INSTALL file.
103

104
105
$OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.12 2000/09/09
21:16:09 kurt Exp $
106