1 Making and Installing the OpenLDAP Distribution
3 ** It is recommended that you read or at least skim through ALL of the
4 ** instructions in this file before attempting to build the software.
6 If you want to build binaries for more than one platform from a single
7 source tree, skip ahead to the "Building LDAP For More Than One Platform"
8 section near the end of this file.
10 If you simply want to build LDAP for a single machine platform, follow
13 1. untar the distribution and cd to the top:
15 % tar xfz openldap-VERSION.tgz
18 If you are reading this file, you probably have already done this!
23 to list available configuration options. A description of
24 these options is provided in the 'CONFIGURE OPTIONS' section
27 The configure script will also use your environmental
28 variables for determining compiler/linker options.
30 These environment variables are used:
31 CC C Compiler (cc, ecgs)
32 CFLAGS C Flags (-ansi)
33 CPPFLAGS CPP Flags (-I/path/include -Ddef)
34 LDFLAGS LDFLAGS (-L/path/lib -llib)
36 A list of defines and other options are noted in the
37 'DEFINES and FLAGS' comments below.
39 3. edit the file include/ldapconfig.h.edit to configure
40 the software for your site (the files are well-commented):
42 % vi include/ldapconfig.h.edit
44 4. Configure the build system
46 % [env settings] ./configure [options]
48 If all goes well, the configure script with auto-detect the
49 appropriate settings. Use configure enable/with options and/or
50 environment variables to obtain desired results.
60 If all goes well, the system will build as configured. If not,
61 return to step 4 after reviewing the enable/with options settings.
63 7. install the binaries and man pages. You may need to be superuser to
64 do this (depending on where you are installing things):
69 That's it! See the man pages for the individual clients for information
70 on configuring and using them. Eventually you will probably want to
71 edit the configuration files used by the various clients (installed in
72 the LDAP etc directory). The files are:
74 ldapfilter.conf - search filter configuration
75 ldapfriendly - mapping of X.500 names to human-friendly names
76 ldapsearchprefs.conf - search object definitions
77 ldaptemplates.conf - display template definitions
79 There are section 5 man pages for all of these files.
82 Building LDAP For More Than One Platform
84 It is now possible to build LDAP for more than one platform from the same
85 source tree. This is accomplished by using make(1) VPATH support. If
86 your make(1) program is old and doesn't have VPATH support, install GNU
89 Follow these steps for each different platform:
91 1. Create a directory for the platform object files.
95 2. Change your working directory to the platform object directory.
99 3. Configure the build system
101 % [env settings] ../configure --src-dir=.. [options]
103 ( replace ".." with the appropriate path )
105 4. Continue as above (starting at step 6).
107 Note: make depend in VPATH environment is not yet supported.
112 Regrettably, this section has not been written (yet). See
113 "./configure --help" for current list of options.
118 The configure script will also use your environmental
119 variables for determining compiler/linker options. This can
120 be used to manual specify features and compilation options.
122 Supported Environmental Variables
123 CC C Compiler (cc, ecgs)
124 CFLAGS C Flags (-ansi)
125 CPPFLAGS CPP Flags (-I/path/include -Ddef)
126 LDFLAGS LDFLAGS (-L/path/lib -llib)
128 End of OpenLDAP INSTALL file.