I was installing php and the rest on ns3 and obviously I got the latest php 5.2.9
Using the usual configure options I was getting: configure error: Cannot find MySQL header files
Turned out I had to pass the base mysql installation folder to both the –with-mysql option AND –with-mysql-pdo=shared which rutned into “–with-mysql-pdo=shared,/path/to/mysql” without the quotes. or with them, doesn’t matter for the shell.