From: James Hughes Date: 2005-12-14T03:40:30+09:00 Subject: ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS Hi, I'm trying to run the pr_ctl example script provided with the 0.9.2 distribution of ruby-ldap. It dies with "./pr_ctl:41: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS (NameError)". I need to use this control, but I can't figure out why this is happening. This constant is mentioned in ldap.c: #ifdef LDAP_CONTROL_PAGEDRESULTS rb_define_const (rb_mLDAP, "LDAP_CONTROL_PAGEDRESULTS", rb_str_new2 (LDAP_CONTROL_PAGEDRESULTS)); #endif I've installed the source distribution of ruby-ldap in place of the version that Debian provides. I thought perhaps the script was accessing an older version of the shared library, but there don't seem to be any old versions lying around. I've added /usr/local/lib/site_ruby/1.8/i486-linux (the location of the 0.9.2 shared lib) to /etc/ld.so.conf and run ldconfig: no joy. Any other ideas on how to debug this? thanks jh -- James Hughes Web application developer Centre for Health Services and Policy Research Vancouver, BC