NYCPHP Meetup

NYPHP.org

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

Tim Gales tgales at tgaconnect.com
Sun Mar 27 18:36:42 EST 2005


> From: talk-bounces at lists.nyphp.org 
> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere
> Sent: Sunday, March 27, 2005 5:07 PM
> To: 'NYPHP Talk'
> Subject: RE: [nycphp-talk] openssl not being picked up by configure
> 
> 
> 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..

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com





More information about the talk mailing list