]> git.sur5r.net Git - openldap/blob - INSTALL
Misc. DN fixes and cleanups, namely don't muck with AVA_BINARY values
[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 (http://www.openldap.org/doc/admin/).
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 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
19 Making and Installing the OpenLDAP Distribution
20 -----------------------------------------------
21
22 1.   Unpack the distribution and change directory:
23
24         % tar xfz openldap-VERSION.tgz
25         % cd openldap-VERSION
26
27      (replacing VERSION with the appropriate version string).  If you
28      are reading this file, you probably have already done this!
29
30 2.   Type:
31
32         % ./configure --help
33
34      to list available configuration options.
35
36      The configure script uses environmental variables for determining
37      compiler/linker options including:
38
39         Variable        Description     Example
40         CC              C compiler      gcc
41         CFLAGS          C flags         -O -g
42         CPPFLAGS        cpp flags       -I/path/include -Ddef
43         LDFLAGS         ld flags        -L/usr/local/lib
44         LIBS            libraries       -llib
45         PATH            command path    /usr/local/bin:/usr/bin:/bin
46
47 3.   Configure the build system
48
49         % [env settings] ./configure [options]
50
51      If all goes well, the configure script with automatically detect
52      the appropriate settings.  However, you may need to specify
53      options and/or environment variables to obtain desired results.
54
55 4.   Build dependencies
56
57         % make depend
58
59 5.   Build the system
60
61         % make
62
63      If all goes well, the system will build as configured.  If not,
64      return to step 3 after reviewing the configuration settings.  You
65      may want to consult the Platform Hints subsection of the FAQ if
66      you have not done so already.
67
68 6.   Test the standalone system
69
70      This step requires the standalone LDAP server, slapd(8), with
71      LDBM support.
72
73         % make test
74
75      If all goes well, the system has been built as configured.  If
76      not, return to step 4 after reviewing your configuration
77      settings.  You may want to consult the Installation section of
78      the FAQ if you have not done so already.
79
80 7.   install the binaries and man pages.  You may need to be come the
81      super-user (e.g. root) to do this (depending on where you are
82      installing things):
83
84         % su root -c 'make install'
85
86 8.   That's it!
87
88 See the OpenLDAP Administrator's Guide and the manual pages for the
89 individual applications for configuration and use information. You may
90 also want to edit the configuration files used by the various
91 components.  These configuration files are located in the OpenLDAP
92 configuration directory (normally /usr/local/etc/openldap).
93
94         ldap.conf               client defaults
95         slapd.conf              Standalone LDAP daemon
96         schema/*.schema         Schema Definitions
97
98
99 End of OpenLDAP INSTALL file.
100
101 $OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.12 2000/09/09
102 21:16:09 kurt Exp $
103