If you get lots of:
configure: error: Cannot find libXXX under /usr.
when you attempt to
./configure PHP 5.2.x (and possibly earlier series as well), try appending:
This instructs the script to look for libraries under
/usr/lib/x86_64-linux-gnu instead of
/usr/lib. If this doesn’t work for you, try running:
$ sudo updatedb $ locate 'libXXX' | grep 'so$'
Which should output the directory where the binary
libmysqlclient) is installed.
If you also see this at the linking stage:
ext/openssl/xp_ssl.c: undefined reference to `SSLv2_server_method'
You would want to patch your 5.2.17 source with debianpatchesdisableSSLv2foropenssl100.patch.Tweet