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