# Error: can't find ldap.h and lber.h

**URL:** <https://www.ruby-forum.com/t/error-cant-find-ldap-h-and-lber-h/189582>\
**Category:** Rails\
**Created:** [June 3, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/error-cant-find-ldap-h-and-lber-h/189582 "2010-06-03T15:19:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [June 3, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/error-cant-find-ldap-h-and-lber-h/189582/1 "2010-06-03T15:19:30Z")

</div>

Hi,

When i run the command “ruby extconf.rb --with-openldap1” i am getting  
the error as “can’t find ldap.h and lber.h  
use the option ‘–with-ldap-dir’!”. How can i solve this problem  
please?.

Thank you  
Periyasamy.R
