Forum Moderators: phranque

Message Too Old, No Replies

issue with htpasswd and libldap-2.3.so.0

library missing

         

infinitiguy

4:49 pm on Dec 31, 2008 (gmt 0)

10+ Year Member



Forgive me if any of my questions are silly, but I'm new to apache. I'm trying to set up a 2.0.63 installation on Solaris with basic authentication and I'm having some issues. I copied the binaries from another solaris installation(10) but the binaries are build for solaris 9(which is where I'm running it) I tar'ed up the whole directory and everything works fine(including mod_jk) however when I run htpasswd I get the following..

# pwd
/usr/local/apache/2.0.63/bin
# ./htpasswd -c /usr/local/apache/2.0.63/conf/htpasswd testuser
ld.so.1: htpasswd: fatal: libldap-2.3.so.0: open failed: No such file or directory
Killed

however, that library does exist!
# cd ../lib/
# pwd
/usr/local/apache/2.0.63/lib
# ls -al
total 8562
drwxr-xr-x 2 root other 1024 Dec 31 11:32 .
drwxrwxr-x 15 root other 1024 Dec 30 17:41 ..
-rw-r--r-- 1 root other 7891 Nov 4 07:00 apr.exp
-rw-r--r-- 1 root other 3692 Nov 4 07:01 aprutil.exp
-rw-r--r-- 1 root other 197084 Nov 4 07:00 libapr-0.a
-rw-r--r-- 1 root other 874 Nov 4 07:00 libapr-0.la
lrwxrwxrwx 1 root root 18 Dec 30 17:41 libapr-0.so -> libapr-0.so.0.9.17
lrwxrwxrwx 1 root root 18 Dec 30 17:41 libapr-0.so.0 -> libapr-0.so.0.9.17
-rwxr-xr-x 1 root other 159608 Nov 4 07:00 libapr-0.so.0.9.17
-rw-r--r-- 1 root other 129904 Nov 4 07:01 libaprutil-0.a
-rw-r--r-- 1 root other 843 Nov 4 07:01 libaprutil-0.la
lrwxrwxrwx 1 root root 22 Dec 30 17:41 libaprutil-0.so -> libaprutil-0.so.0.9.17
lrwxrwxrwx 1 root root 22 Dec 30 17:41 libaprutil-0.so.0 -> libaprutil-0.so.0.9.17
-rwxr-xr-x 1 root other 104152 Nov 4 07:01 libaprutil-0.so.0.9.17
lrwxrwxrwx 1 root root 18 Dec 30 17:41 libcrypto.so -> libcrypto.so.0.9.8
-r-xr-xr-x 1 root other 1576024 Oct 24 10:45 libcrypto.so.0.9.8
-rw-r--r-- 1 root other 142732 Nov 4 07:01 libexpat.a
-rwxr-xr-x 1 root other 813 Nov 4 07:01 libexpat.la
lrwxrwxrwx 1 root root 17 Dec 30 17:41 libexpat.so -> libexpat.so.0.1.0
lrwxrwxrwx 1 root root 17 Dec 30 17:41 libexpat.so.0 -> libexpat.so.0.1.0
-rwxr-xr-x 1 root other 135468 Nov 4 07:01 libexpat.so.0.1.0
lrwxrwxrwx 1 root root 13 Dec 30 17:41 libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 root bin 171544 Sep 5 2006 libgcc_s.so.1
lrwxrwxrwx 1 root root 17 Dec 30 17:41 libiconv.so -> libiconv.so.2.4.0
lrwxrwxrwx 1 root root 17 Dec 30 17:41 libiconv.so.2 -> libiconv.so.2.4.0
-rwxr-xr-x 1 root bin 1161116 Nov 20 2006 libiconv.so.2.4.0
lrwxrwxrwx 1 root root 21 Dec 30 17:41 liblber-2.3.so.0 -> liblber-2.3.so.0.2.31
-rwxr-xr-x 1 root other 54144 Nov 4 05:52 liblber-2.3.so.0.2.31
lrwxrwxrwx 1 root root 21 Dec 30 17:41 liblber.so -> liblber-2.3.so.0.2.31
lrwxrwxrwx 1 root other 21 Dec 31 11:32 libldap-2.3.so.0 -> libldap-2.3.so.0.2.31
-rwxr-xr-x 1 root other 223476 Nov 4 05:52 libldap-2.3.so.0.2.31
lrwxrwxrwx 1 root other 21 Dec 31 11:31 libldap.so -> libldap-2.3.so.0.2.31
lrwxrwxrwx 1 root root 15 Dec 30 17:41 libssl.so -> libssl.so.0.9.8
-r-xr-xr-x 1 root other 305624 Oct 24 10:45 libssl.so.0.9.8
#

So.... I'm not quite sure what to do here? How can I get it to see this library? :(

infinitiguy

5:07 pm on Dec 31, 2008 (gmt 0)

10+ Year Member



what is a bit more interesting is my linux vmm that I test on doesn't seem to have libldap-2.3.so.0 but htpasswd works..

[root@huskar local]# find . -name libldap-2.3.so.0 -print
./transfer/2.0.63/lib/libldap-2.3.so.0 <- this is the one from the tar that I took from the solaris 9/10 installation that I'm trying to work with. I extracted it on my linux box just to make sure I tar'ed it correctly

[root@huskar local]# pwd
/usr/local
[root@huskar local]# cd apache/2.0.63/bin/
[root@huskar bin]# ./htpasswd /usr/local/apache/2.0.63/conf/htpasswd testuser2
New password:
Re-type new password:
Adding password for user testuser2
[root@huskar bin]#

I'm extra confused now :)

infinitiguy

9:13 pm on Jan 2, 2009 (gmt 0)

10+ Year Member



i "fixed" this. htpasswd was not seeing the lib directory. I set ld_library_path = /path/to/apache/libs and then it worked.

Stupid binary

jdMorgan

11:07 pm on Jan 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wow! -- Thanks for posting the answer. I certainly never would have guessed the answer...

Jim