Building OpenLDAP from sources and missing BerkelyDB

前端 未结 5 1667
南笙
南笙 2021-02-01 04:55

I\'m building OpenLDAP on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607.

All went well, until running \'./configure\' for OpenLDAP -

相关标签:
5条回答
  • 2021-02-01 05:41

    For CentOS 7, do yum install libdb-devel. libdb4-devel did not work for me.

    0 讨论(0)
  • 2021-02-01 05:42

    Seems you are using tarball installation, first you should install Berkeley DB. You can find it from oracle website at Oracle Berkeley DB Downloads. Compile and install it.

    cd db-4.7.25.NC
    ../dist/configure
    make
    make install
    cd /usr/local/BerkeleyDB.4.7/
    

    This will install BerkeleyDB. Now you need to provide the location to successfully compile OpenLDAP.

    export CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include"
    export LDFLAGS="-L/usr/local/BerkeleyDB.4.7/lib -Wl,-R,/usr/local/BerkeleyDB.4.7/lib -Wl,--enable-new-dtags"
    # Build OpenLDAP
    ... 
    

    If you don't set RPATH then you should add LD_LIBRARY_PATH to /etc/profile.

    export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.7/lib"
    

    After this compile OpenLDAP, let me know if you face any issue.

    0 讨论(0)
  • 2021-02-01 05:47

    do yum install db4-devel

    (or just install the prepackaged openldap, yum install openldap-servers openldap-clients

    0 讨论(0)
  • 2021-02-01 05:47

    debian try:

    aptitude install libdb5.1 libdb5.1-dev libdb5.1-dbg

    0 讨论(0)
  • 2021-02-01 05:47

    apt-get install libdb-dev worked for me in Ubuntu Server.

    0 讨论(0)
提交回复
热议问题