]> git.sur5r.net Git - openldap/blob - INSTALL
cleanup; plug potential leak?
[openldap] / INSTALL
1 Making and Installing the OpenLDAP Distribution
2 ===============================================
3
4 This file provides brief instructions on how to build and install
5 OpenLDAP on UNIX (and UNIX-like) system.  More detailed information
6 and instructions can be found in The OpenLDAP Administrator's Guide
7 (available from http://www.openldap.org/doc/).
8
9 It is recommended that you read, or at least skim through, ALL of the
10 instructions in this file before attempting to build the software.
11
12 It is also recommended you review the Frequently Asked Questions
13 (http://www.openldap.org/faq/) pages, in particular the Installation
14 section (http://www.openldap.org/faq/index.cgi?file=8) and Platform
15 Hints (http://www.openldap.org/faq/index.cgi?file=9) should be
16 examined.
17
18 Making and Installing the OpenLDAP Distribution
19 -----------------------------------------------
20
21 1.   Unpack the distribution and change directory:
22
23         % tar xfz openldap-VERSION.tgz
24         % cd openldap-VERSION
25
26      (replacing VERSION with the appropriate version string).  If you
27      are reading this file, you probably have already done this!
28
29 2.   Type:
30
31         % ./configure --help
32
33      to list available configuration options.
34
35      Note also that the configure script uses environmental variables
36      for determining compiler/linker options including:
37
38         Variable        Description     Example
39         CC              C compiler      gcc
40         CFLAGS          C flags         -O -g
41         CPPFLAGS        cpp flags       -I/path/include -DFOO=42
42         LDFLAGS         ld flags        -L/usr/local/lib
43         LIBS            libraries       -llib
44         PATH            command path    /usr/local/bin:/usr/bin:/bin
45
46      See doc/install/configure for generic configure documentation.
47
48 3.   Configure the build system:
49
50         % [env settings] ./configure [options]
51
52      If all goes well, the configure script with automatically detect
53      the appropriate settings.  However, you may need to specify
54      options and/or environment variables to obtain desired results.
55
56 4.   Build dependencies:
57
58         % make depend
59
60 5.   Build the system:
61
62         % make
63
64      If all goes well, the system will build as configured.  If not,
65      return to step 3 after reviewing the configuration settings.  You
66      may want to consult the Platform Hints subsection of the FAQ if
67      you have not done so already.
68
69 6.   Test the standalone system:
70
71      This step requires the standalone LDAP server, slapd(8), with
72      BDB, HDB, and/or LDBM support.
73
74         % make test
75
76      If all goes well, the system has been built as configured.  If
77      not, return to step 2 after reviewing your configuration
78      settings.  You may want to consult the Installation section of
79      the FAQ if you have not done so already.
80
81 7.   Install the software.  You may need to be come the super-user
82      (e.g. root) to do this (depending on where you are installing
83      things):
84
85         % su root -c 'make install'
86
87 8.   That's it.  Enjoy!
88
89 See the OpenLDAP Administrator's Guide and the manual pages for the
90 individual applications for configuration and use information. You may
91 also want to edit the configuration files used by the various
92 components.  These configuration files are located in the OpenLDAP
93 configuration directory (normally /usr/local/etc/openldap).
94
95         ldap.conf               client defaults
96         slapd.conf              Standalone LDAP daemon
97         schema/*.schema         Schema Definitions
98
99 ---
100 $OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.16 2002/02/18
101 17:09:26 kurt Exp $
102
103 This work is part of OpenLDAP Software <http://www.openldap.org/>.
104
105 Copyright 1998-2004 The OpenLDAP Foundation.
106 All rights reserved.
107
108 Redistribution and use in source and binary forms, with or without
109 modification, are permitted only as authorized by the OpenLDAP
110 Public License.
111
112 A copy of this license is available in the file LICENSE in the
113 top-level directory of the distribution or, alternatively, at
114 <http://www.OpenLDAP.org/license.html>.
115
116 OpenLDAP is a registered trademark of the OpenLDAP Foundation.