I recently got so fed up with Unity, I decided it was time for me to find something new. In the process, I’ve also decided it might be best to reinstall my machine with Debian instead of Ubuntu. I’ve decided a lot, lately. Since I use PDO with PostgreSQL, I tried to install the pdo_pgsql PECL package, but it failed with the message “Configure: Error: Cannot find php_pdo_driver.h“. Now, I was pretty sure that I had that file on my box, it was located in /usr/include/php5/ext/pdo/. Nevertheless, configure couldn’t find it. Turns out it was looking in a different directory; /usr/include/php/ext/pdo.
The simplest solution I could think of:
ln -s /usr/include/php5 /usr/include/php
It worked like a charm Of course, it’d be even better to compile PHP myself, but that’s for a different day.