Unable to build python-ldap-2.3.13
<p>I downloaded Python LDAP 2.3.13 from <a href="http://pypi.python.org/pypi/python-ldap/2.3.13" rel="nofollow">http://pypi.python.org/pypi/python-ldap/2.3.13</a> but while trying to build it gives me below error:</p>

<pre><code>ldap/python-ldap-2.3.13&gt; python setup.py build
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
creating build
creating build/lib.linux-x86_64-2.7
copying Lib/ldapurl.py -&gt; build/lib.linux-x86_64-2.7
copying Lib/ldif.py -&gt; build/lib.linux-x86_64-2.7
copying Lib/dsml.py -&gt; build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/__init__.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/async.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/controls.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/cidict.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/dn.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/filter.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/functions.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/ldapobject.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/modlist.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/resiter.py -&gt; build/lib.linux-x86_64-2.7/ldap
copying Lib/ldap/sasl.py -&gt; build/lib.linux-x86_64-2.7/ldap
creating build/lib.linux-x86_64-2.7/ldap/schema
copying Lib/ldap/schema/__init__.py -&gt; build/lib.linux-x86_64-2.7/ldap/schema
copying Lib/ldap/schema/models.py -&gt; build/lib.linux-x86_64-2.7/ldap/schema
copying Lib/ldap/schema/subentry.py -&gt; build/lib.linux-x86_64-2.7/ldap/schema
copying Lib/ldap/schema/tokenizer.py -&gt; build/lib.linux-x86_64-2.7/ldap/schema
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running egg_info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/Modules
-DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.13 -IModules -I/usr/local/openldap-2.3/include -I/usr/include/sasl -I/snaps14/satprasad/bin/python/usr/local/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o
unable to execute -DHAVE_LIBLDAP_R: No such file or directory
error: command '-DHAVE_LIBLDAP_R' failed with exit status 1
ldap/python-ldap-2.3.13&gt;
</code></pre>

<p>Please let me know how to solve this?</p>
