Hi,
I'd like to appreciate all people who previously helped out my OpenLDAP 2.3 build process. Now, I come to the last stage but got stuck at the "make test" stage. It failed with the following messages:
cd tests; make test make[1]: Entering directory `/myopenldap/openldap-2.3.39/tests' make[2]: Entering directory `/myopenldap/openldap-2.3.39/tests' Initiating LDAP tests for BDB... Running ./scripts/all...
Executing all LDAP tests for bdb Starting test000-rootdse ...
running defines.sh Starting slapd on TCP/IP port 9011... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ../scripts/test000-rootdse: line 66: kill: (28736) - No such process .../clients/tools/ldapsearch: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Test failed ./scripts/test000-rootdse failed (exit 127)
make[2]: *** [bdb-yes] Error 127 make[2]: Leaving directory `/myopenldap/openldap-2.3.39/tests' make[1]: *** [test] Error 2 make[1]: Leaving directory `/myopenldap/openldap-2.3.39/tests' make: *** [test] Error 2
I triled to resolve the problem by creating a symbolic link to the shared lib under the /usr/local/ssl/lib but in vain. Can anyone please help? I'll highly appreciate it!
Luke
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--On Friday, April 11, 2008 4:35 PM -0700 Luke Lee leeluke77@yahoo.com wrote:
Hi,
I'd like to appreciate all people who previously helped out my OpenLDAP 2.3 build process. Now, I come to the last stage but got stuck at the "make test" stage. It failed with the following messages:
I triled to resolve the problem by creating a symbolic link to the shared lib under the /usr/local/ssl/lib but in vain. Can anyone please help? I'll highly appreciate it!
You need to set the run path correctly when building, so that slapd knows what paths to search to find the libraries.
For example, in my OpenLDAP build, I have:
LDFLAGS="-L$(OPENSSL_LIB_DIR) -L$(BDB_LIB_DIR) -L$(CYRUS_LIB_DIR) -R$(OPENSSL_LIB_DIR) -R$(BDB_LIB_DIR) -R$(CYRUS_LIB_DIR)"
and when I go to make:
LD_RUN_PATH=$(OPENSSL_LIB_DIR):$(BDB_LIB_DIR):$(CYRUS_LIB_DIR) $(MAKE) $(MAKEARGS);
that should get you going in the right direction.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org