NYCPHP Meetup

NYPHP.org

[nycphp-talk] openssl not being picked up by configure

Hans Zaunere lists at zaunere.com
Sun Mar 27 19:56:08 EST 2005


> > Looks like /usr/local/ssl is your base directory for the
> > version of OpenSSL you want.  Give
> > --with-openssl=/usr/local/ssl a shot....
> >
> > If that works (or even if it doesn't) see what ldconfig has
> > to say about where your libs are.  If Linux:
> >
> > ldconfig -p | grep -i ssl
> >
> 
> ldconfig -p | grep -i ssl
>         libssl.so.0.9.7 (libc6) => /usr/lib/libssl.so.0.9.7
>         libssl.so (libc6) => /usr/lib/libssl.so
>         libgnutls-openssl.so.11 (libc6) =>
> /usr/lib/libgnutls-openssl.so.11
> 
> ls -l --time-style=long-iso /usr/lib/libssl.*
> -rw-r--r--  1 root root 303232 2004-12-03 14:03 /usr/lib/libssl.a
> ...
> 
> ls -l --time-style=long-iso /usr/local/ssl/lib
> 
> drwxr-xr-x  3 root root     136 2005-03-27 10:40 .
> drwxr-xr-x  9 root root     248 2005-03-27 14:16 ..
> -rw-r--r--  1 root root 1813360 2005-03-27 10:40 libcrypto.a
> -rw-r--r--  1 root root  268380 2005-03-27 10:40 libssl.a
> 
> (this is the 0.9.7f I built earlier)
> 
> > or, on a BSD:
> >
> > ldconfig -r | grep -i ssl
> >
> Thanks for the BSD-style command -- I will safe store that somewhere...
> 
> > And unless you have other dependencies (for instance, the old
> > version of OpenSSL was probably installed using an RPM or
> > some package system), I always remove the other versions of
> > libs I don't want.  Having multiple lib versions can become
> > quite confusing.
> 
> Yeah, I often get lost about what runs with what...
> 
> I thought it might be good to keep the other openssl as is.
> (figuring I can look into it later)
> 
> So I went with your suggestion to try "--with-openssl=/usr/local/ssl"
> 
> Hey, whadda ya know -- phpinfo now reports the server running
> 
> OpenSSL support  enabled
> OpenSSL Version  OpenSSL 0.9.7f 22 Mar 2005
> 
> 
> Thanks a million Hans..

No problem - happy it worked.

I'm a little scared that ldconfig reports the other, older lib.  Depending on the build tools you're using, and the version, platform, and more voodoo, what ldconfig reports can count more or less.

G... N... U... do that voodoo that you do


---
Hans Zaunere
President, Founder

New York PHP
http://www.nyphp.org

AMP Technology
Supporting Apache, MySQL and PHP







More information about the talk mailing list