From: gregarican Date: 2005-06-11T00:55:29+09:00 Subject: Ruby/LDAP on Windows 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 /* 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 /* 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 /* 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 :-)