INSTALL 3.91 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
OpenLDAP on UNIX (and UNIX-like) system.  More detailed information
and instructions can be found in The OpenLDAP Administrator's Guide
Kurt Zeilenga's avatar
Kurt Zeilenga committed
7
(available from http://www.openldap.org/doc/).
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 Frequently Asked Questions
13
14
15
16
(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
17

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

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

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

Kurt Zeilenga's avatar
Kurt Zeilenga committed
26
27
     (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
28

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

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

33
     to list available configuration options.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
34

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

38
        Variable        Description     Example
Kurt Zeilenga's avatar
Kurt Zeilenga committed
39
40
        CC              C compiler      gcc
        CFLAGS          C flags         -O -g
41
        CPPFLAGS        cpp flags       -I/path/include -DFOO=42
Kurt Zeilenga's avatar
Kurt Zeilenga committed
42
43
44
        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
45

Kurt Zeilenga's avatar
Kurt Zeilenga committed
46
3.   Configure the build system
Kurt Zeilenga's avatar
Kurt Zeilenga committed
47

Kurt Zeilenga's avatar
Kurt Zeilenga committed
48
        % [env settings] ./configure [options]
Kurt Zeilenga's avatar
Kurt Zeilenga committed
49

Kurt Zeilenga's avatar
Kurt Zeilenga committed
50
51
52
     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
53

Kurt Zeilenga's avatar
Kurt Zeilenga committed
54
4.   Build dependencies
55

Kurt Zeilenga's avatar
Kurt Zeilenga committed
56
        % make depend
57

Kurt Zeilenga's avatar
Kurt Zeilenga committed
58
5.   Build the system
59

Kurt Zeilenga's avatar
Kurt Zeilenga committed
60
        % make
61

Kurt Zeilenga's avatar
Kurt Zeilenga committed
62
63
64
65
     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.
66

Kurt Zeilenga's avatar
Kurt Zeilenga committed
67
6.   Test the standalone system
68

Kurt Zeilenga's avatar
Kurt Zeilenga committed
69
     This step requires the standalone LDAP server, slapd(8), with
Kurt Zeilenga's avatar
Kurt Zeilenga committed
70
     BDB and/or LDBM support.
71

Kurt Zeilenga's avatar
Kurt Zeilenga committed
72
        % make test
Kurt Zeilenga's avatar
Kurt Zeilenga committed
73

Kurt Zeilenga's avatar
Kurt Zeilenga committed
74
75
76
77
     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
78

79
80
81
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
82

Kurt Zeilenga's avatar
Kurt Zeilenga committed
83
        % su root -c 'make install'
84

Kurt Zeilenga's avatar
Kurt Zeilenga committed
85
8.   That's it!
Kurt Zeilenga's avatar
Kurt Zeilenga committed
86

87
88
89
90
91
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).
92

Kurt Zeilenga's avatar
Kurt Zeilenga committed
93
94
95
        ldap.conf               client defaults
        slapd.conf              Standalone LDAP daemon
        schema/*.schema         Schema Definitions
96

Kurt Zeilenga's avatar
Kurt Zeilenga committed
97
End of OpenLDAP INSTALL file.
98

Kurt Zeilenga's avatar
Kurt Zeilenga committed
99
100
$OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.16 2002/02/18
17:09:26 kurt Exp $
101

Kurt Zeilenga's avatar
Kurt Zeilenga committed
102
103
104
105
106
107
108
109
110
111
112
113
Copyright 1998-2003 The OpenLDAP Foundation, Redwood City,
	California, USA.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP
Public License.

A copy of this license is available in the file LICENSE in the
top-level directory of the distribution or, alternatively, at
<http://www.OpenLDAP.org/license.html>.

OpenLDAP is a registered trademark of the OpenLDAP Foundation.