1999-10-01 01:01:02 +08:00
|
|
|
# $OpenLDAP$
|
2008-02-13 15:35:23 +08:00
|
|
|
# Copyright 1999-2008 The OpenLDAP Foundation, All Rights Reserved.
|
1999-10-01 01:01:02 +08:00
|
|
|
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
|
|
|
|
|
|
|
|
P1: Making and Installing the OpenLDAP Distribution
|
|
|
|
|
2000-07-29 10:44:55 +08:00
|
|
|
This file provides brief instructions on how to build and install
|
2002-06-19 03:35:29 +08:00
|
|
|
OpenLDAP on UNIX (and UNIX-{{like}}) systems. More detailed
|
2000-09-10 07:16:09 +08:00
|
|
|
information and instructions can be found in
|
|
|
|
{{The OpenLDAP Administrator's Guide}}
|
2002-02-19 02:02:26 +08:00
|
|
|
(available from {{URL:http://www.openldap.org/doc/}}).
|
2000-07-29 10:44:55 +08:00
|
|
|
|
|
|
|
It is recommended that you read, or at least skim through, ALL of
|
|
|
|
the instructions in this file before attempting to build the
|
|
|
|
software.
|
|
|
|
|
2000-09-08 02:14:37 +08:00
|
|
|
It is also recommended you review
|
2000-07-29 10:44:55 +08:00
|
|
|
the {{Frequently Asked Questions}} ({{URL:http://www.openldap.org/faq/}})
|
|
|
|
pages, in particular the
|
|
|
|
{{Installation section}} ({{URL:http://www.openldap.org/faq/index.cgi?file=8}})
|
|
|
|
and
|
|
|
|
{{Platform Hints}} ({{URL:http://www.openldap.org/faq/index.cgi?file=9}})
|
|
|
|
should be examined.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
P2: Making and Installing the OpenLDAP Distribution
|
|
|
|
|
2000-07-29 10:44:55 +08:00
|
|
|
^ Unpack the distribution and change directory:
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
E: % tar xfz openldap-VERSION.tgz
|
|
|
|
E: % cd openldap-VERSION
|
|
|
|
|
2000-07-29 10:44:55 +08:00
|
|
|
.(replacing {{EX:VERSION}} with the appropriate version string). If
|
|
|
|
you are reading this file, you probably have already done this!
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
+ Type:
|
|
|
|
|
|
|
|
E: % ./configure --help
|
|
|
|
|
2002-02-19 02:09:26 +08:00
|
|
|
.to list available configuration options.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
2002-06-19 03:35:29 +08:00
|
|
|
.The {{EX:configure}} script uses environment variables for
|
2000-09-10 07:16:09 +08:00
|
|
|
determining compiler/linker options including:
|
1999-10-01 01:01:02 +08:00
|
|
|
|
2000-09-10 07:16:09 +08:00
|
|
|
> Variable Description Example
|
1999-10-01 01:01:02 +08:00
|
|
|
> CC C compiler gcc
|
2000-08-18 08:43:29 +08:00
|
|
|
> CFLAGS C flags -O -g
|
2003-03-10 23:41:55 +08:00
|
|
|
> CPPFLAGS cpp flags -I/path/include -D__FOO__=42
|
1999-10-01 01:01:02 +08:00
|
|
|
> LDFLAGS ld flags -L/usr/local/lib
|
|
|
|
> LIBS libraries -llib
|
|
|
|
> PATH command path /usr/local/bin:/usr/bin:/bin
|
|
|
|
|
|
|
|
+ Configure the build system
|
|
|
|
|
|
|
|
E: % [env settings] ./configure [options]
|
|
|
|
|
2005-03-24 01:20:59 +08:00
|
|
|
.If all goes well, the {{EX:configure}} script will automatically detect
|
|
|
|
the appropriate settings. If the {{EX:configure}} script fails, you should
|
|
|
|
read the {{FILE:config.log}} file that it generated to see what it was trying
|
|
|
|
to do and exactly what failed. You may need to specify additional
|
|
|
|
options and/or environment variables besides those listed above to
|
|
|
|
obtain desired results, depending on your operating system. The
|
|
|
|
{{Platform Hints}} section of the {{FAQ}} provides help for operating system
|
|
|
|
related problems.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
+ Build dependencies
|
|
|
|
|
|
|
|
E: % make depend
|
|
|
|
|
|
|
|
+ Build the system
|
|
|
|
|
|
|
|
E: % make
|
|
|
|
|
|
|
|
.If all goes well, the system will build as configured. If not,
|
2000-07-29 10:44:55 +08:00
|
|
|
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.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
+ Test the standalone system
|
|
|
|
|
2000-07-29 10:44:55 +08:00
|
|
|
.This step requires the standalone LDAP server, {{slapd}}(8),
|
2006-02-17 17:24:57 +08:00
|
|
|
with {{HDB}} and/or {{BDB}} support.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
2000-07-29 03:55:55 +08:00
|
|
|
E: % make test
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
.If all goes well, the system has been built as configured. If not,
|
2000-07-29 10:44:55 +08:00
|
|
|
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.
|
1999-10-01 01:01:02 +08:00
|
|
|
|
2002-06-19 03:35:29 +08:00
|
|
|
+ Install the binaries and man pages. You may need to become the
|
2000-09-10 07:16:09 +08:00
|
|
|
{{super-user}} (e.g. {{EX:root}}) to do this (depending on where you
|
|
|
|
are installing things):
|
1999-10-01 01:01:02 +08:00
|
|
|
|
2000-07-29 03:55:55 +08:00
|
|
|
E: % su root -c 'make install'
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
+ That's it!
|
|
|
|
|
2000-09-10 07:16:09 +08:00
|
|
|
See the {{OpenLDAP Administrator's Guide}} and the manual pages
|
|
|
|
for the individual applications for configuration and use information.
|
2000-07-29 10:44:55 +08:00
|
|
|
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
|
2005-03-24 01:20:59 +08:00
|
|
|
{{FILE:/usr/local/etc/openldap}}).
|
1999-10-01 01:01:02 +08:00
|
|
|
|
|
|
|
> ldap.conf client defaults
|
|
|
|
> slapd.conf Standalone LDAP daemon
|
2000-07-29 03:55:55 +08:00
|
|
|
> schema/*.schema Schema Definitions
|
1999-10-01 01:01:02 +08:00
|
|
|
|