[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: What is ldap.h?

Thanks so much Adam,
Okay, I did install the OpenLDAP on the server. I can see the file, ldap.h
in  /usr/local/include

I tried cleaning the directory, and start over, but it gave me the same
Then I tried to set the CPPFLAGS to /usr/local/include, where the ldap.h is,
but when I run the configure again, it fails to find the c compiler, because
of it.

>I am trying to install pam_ldap, and nss_ldap on a FreeBSD server.
>No matter how I go about it, it keeps giving me errors during the
>configure: error: could not locate <ldap.h>
>I was referred to OpenLDAP to solve my problem. However, I was told to
>install the developers package.
>I can't find anything regarding this on the OpenLDAP site. All I see is the
>LDAP Server.

If you built it from source and did a make install you should have
everything.  Some distros (RedHat for example) like to break things down
into packages like openldap-libraries, openldap-clients, openldap-devel,
etc.... That way you only have to put in what you want.

>Could someone please tell me what I need to do to get these installed.

Do a make distclean in your pam_dap dir and try ./configure again.
Sometime configure scripts cache things and don't detect changes in the
build environ.  If that fails find where ldap.h is and "export
CPPFLAGS=-I{dir where ldap.h is}"  Then ./configure again.

Also find an "Intro to C" text.  Knowing at least how the build process
works is imperitive to working with an OS like *BSD.