Skip to content

Instantly share code, notes, and snippets.

@caot
Created June 2, 2023 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caot/6c1ebcac00934d9fb88cfeaf06d50b07 to your computer and use it in GitHub Desktop.
Save caot/6c1ebcac00934d9fb88cfeaf06d50b07 to your computer and use it in GitHub Desktop.
wget https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.44.tgz
tar vxf openldap-2.4.44.tgz
cd openldap-2.4.44
export PKGS=$HOME/apps/openldap-2.4.44
./configure --prefix=$PKGS --enable-shared
make depend
make
make install
(py2-xxx) [uid@nlas0059 xxx.git]$
export PKGS=$HOME/apps/openldap-2.4.44
export LD_LIBRARY_PATH=$PKGS/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=$LD_LIBRARY_PATH
export LDFLAGS="-L$PKGS/lib"
export CPPFLAGS="-I$PKGS/include"
export CXXFLAGS=$CPPFLAGS
export CFLAGS=$CPPFLAGS
pip install python-ldap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment