greg.kujawa
6/28/2005 1:13:00 PM
gregarican wrote:
> Here is a message I sent to the maintainer of this particular project.
> I was wondering if there were broader effects of this, as extconf.rb on
> the Win32 platform using the ruby-mswin32 build seems to quirk out on
> other projects as well. Does anyone fall into the same problems as me?
>
>
> Below is the message I sent off:
>
>
> -----------------
>
>
> I am attempting to build the Ruby/LDAP v0.9.1 package on my Windows
> 2000 development box. I have installed Open-LDAP v2.2.26 on the local
> C: drive. Using the extconf.rb script I specify this as 'ruby
> extconf.rb --with-openldap2 --with-ldap-dir=c:/openldap-2.2.26' Below
> are the contents of the mkmf.log:
>
>
> have_header: checking for ldap.h... -------------------- no
>
>
> "cl -IC:/ruby/ruby-ldap-0.9.1 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.
> -I./.. -I./../missing -MD -Zi -O2b2xg- -G6 -DUSE_OPENLDAP2
> -DUSE_OPENLDAP -Ic:/openldap-2.2.26/include -D_REENTRANT conftest.c
> -P" checked program was:
> /* begin */
> #include <ldap.h>
> /* end */
>
>
> --------------------
>
>
> have_header: checking for lber.h... -------------------- no
>
>
> "cl -IC:/ruby/ruby-ldap-0.9.1 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.
> -I./.. -I./../missing -MD -Zi -O2b2xg- -G6 -DUSE_OPENLDAP2
> -DUSE_OPENLDAP -Ic:/openldap-2.2.26/include -D_REENTRANT conftest.c
> -P" checked program was:
> /* begin */
> #include <lber.h>
> /* end */
>
>
> --------------------
>
>
> have_header: checking for ldap_ssl.h... -------------------- no
>
>
> "cl -IC:/ruby/ruby-ldap-0.9.1 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.
> -I./.. -I./../missing -MD -Zi -O2b2xg- -G6 -DUSE_OPENLDAP2
> -DUSE_OPENLDAP -Ic:/openldap-2.2.26/include -D_REENTRANT conftest.c
> -P" checked program was:
> /* begin */
> #include <ldap_ssl.h>
> /* end */
>
>
> --------------------
>
>
> I have verified that the header files are located in the specified
> OpenLDAP directory. I have tried any combination of specifying the
> directory, such as --with-ldap-dir="c:\\openldap-2.2.26",
> --with-ldap-dir=c:\openldap-2.2.26, etc. Any suggestions how I can get
> the script to find the header files I have in place? I am looking to
> deploy an application that will use LDAP on the back-end and would love
> to get this done on my Windows 2000 box. I have FreeBSD here as well
> and could move things over to there as a last resort, but my Win2K
> laptop is more portable :-)
>
I am still banging my head against the wall trying to get this compiled
on Windows 2000. I have tried compiling a Cygwin version, also to no
avail. Basically in either environment the extconf.rb routine fails to
find the header files using the have_header function that's part of
mkmf.rb. No matter if I specify --with-ldap-dir= or --with-ldapinc= or
--with-ldaplib= the extconf.rb routine doesn't find them. I tried
e-mailing the project maintainer a couple of times but didn't hear
anything back.
As an alternative to the OpenLDAP source files I have looked for the
Microsoft LDAP API source files. I can't seem to locate them. The only
thing I have found close is something called Microsoft ADAM (Active
Directory Application Mode), which is only intended for Windows XP and
2003. It won't install on my Windows 2000 box.
I sincerely hate to be a pest, but does anyone have a successfully
compiled ldap.so that resulted from installing Ruby/LDAP in the mswin32
environment? I used the Ruby One-Click Installer and didn't manually
install Ruby via Cygwin, MinGW, Borland, etc. Just wondering, because I
would love to start communication with my local LDAP server using Ruby
but am running into major roadblocks...