INSTALL 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Making and Installing the OpenLDAP Distribution
  2. ===============================================
  3. This file provides brief instructions on how to build and install
  4. OpenLDAP on UNIX (and UNIX-like) systems. More detailed information
  5. and instructions can be found in The OpenLDAP Administrator's Guide
  6. (available from http://www.openldap.org/doc/).
  7. It is recommended that you read, or at least skim through, ALL of the
  8. instructions in this file before attempting to build the software.
  9. Making and Installing the OpenLDAP Distribution
  10. -----------------------------------------------
  11. 1. Unpack the distribution and change directory:
  12. % tar xfz openldap-VERSION.tgz
  13. % cd openldap-VERSION
  14. (replacing VERSION with the appropriate version string). If you
  15. are reading this file, you probably have already done this!
  16. 2. Type:
  17. % ./configure --help
  18. to list available configuration options.
  19. The configure script also looks for compiler/linker options on
  20. the command line and in the environment. These include:
  21. Variable Description Example
  22. CC C compiler gcc
  23. CFLAGS C flags -O -g
  24. CPPFLAGS cpp flags -I/path/include -D__FOO__=42
  25. LDFLAGS ld flags -L/usr/local/lib
  26. LIBS libraries -llib
  27. PATH command path /usr/local/bin:/usr/bin:/bin
  28. See doc/install/configure for generic configure documentation.
  29. 3. Configure the build system:
  30. % ./configure [options] [var=value ...]
  31. If all goes well, the configure script will automatically detect
  32. the appropriate settings. If the configure script fails, you
  33. should read the config.log file that it generated to see what it
  34. was trying to do and exactly what failed. You may need to
  35. specify additional options and/or variables besides those listed
  36. above to obtain desired results, depending on your operating
  37. system.
  38. 4. Build dependencies:
  39. % make depend
  40. 5. Build the system:
  41. % make
  42. If all goes well, the system will build as configured. If not,
  43. return to step 3 after reviewing the configuration settings.
  44. 6. Test the standalone system:
  45. This step requires the standalone LDAP server, slapd(8), with MDB
  46. support.
  47. % make test
  48. If all goes well, the system has been built as configured. If
  49. not, return to step 2 after reviewing your configuration
  50. settings.
  51. 7. Install the software. You may need to become the super-user
  52. (e.g. root) to do this (depending on where you are installing
  53. things):
  54. % su root -c 'make install'
  55. 8. That's it. Enjoy!
  56. See the OpenLDAP Administrator's Guide and the manual pages for the
  57. individual applications for configuration and use information. You may
  58. also want to edit the configuration files used by the various
  59. components. These configuration files are located in the OpenLDAP
  60. configuration directory (normally /usr/local/etc/openldap).
  61. ldap.conf client defaults
  62. slapd.conf Standalone LDAP daemon
  63. lload.conf LDAP Load Balancer daemon
  64. schema/*.schema Schema Definitions
  65. ---
  66. This work is part of OpenLDAP Software <http://www.openldap.org/>.
  67. Copyright 1998-2022 The OpenLDAP Foundation.
  68. All rights reserved.
  69. Redistribution and use in source and binary forms, with or without
  70. modification, are permitted only as authorized by the OpenLDAP
  71. Public License.
  72. A copy of this license is available in the file LICENSE in the
  73. top-level directory of the distribution or, alternatively, at
  74. <http://www.OpenLDAP.org/license.html>.
  75. OpenLDAP is a registered trademark of the OpenLDAP Foundation.