Problem building PHP extension module
- by tixrus
I'm trying to get GD into my PHP. So I compiled it, made php.ini point to it, restarted apache etc. But no GD. So in apache error log it says
PHP Warning: PHP Startup: gd: Unable
to initialize module\nModule compiled
with module API=20060613\nPHP
compiled with module
API=20090115\nThese options need to
match\n in Unknown on line 0
So a bit of googling says I should not use the phpize I have before configuring and making these. I should use a new one called phpize5. I surely don't have any such thing. Unless its packed up inside something else in my php5.3. distro. Where do you get it. In Ubuntu I could just run sudo apt-get install php-dev, (apparently) and it would just appear by magic. At least that's what the webpage said. Unfortunately I am running MacOSX version Leopard.
How can I build this GD module so that it will match the API number in my PHP?