Question

I'm trying to install the PHP intl extension on Mac 10.6 "Snow Leopard" using the following command:

sudo pecl install intl

...but getting the following errors:

running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed

I am using the bundles Apache server with PHP 5.3.4.

Does anyone know how to install the intl extension?

Was it helpful?

Solution 2

I've installed Zend Server CE and everything works 100%.

I removed Zend Server CE later on, and used this instead: http://php-osx.liip.ch/ which is specifically built for Mac OSX 10.6, and Symfony2 in mind.

This worked better for me in the end, as I'm a Netbeans user, this means I can use xdebug bundled with the liip distribution.

I found it a bit cumbersome getting xdebug installed on Zend Server CE, and also, the liip PHP installation doesn't install an additional Apache and MySQL, it uses what is already included with the OS.

OTHER TIPS

Have you thought about using MAMP instead? It generally works better than Apple's bundled packages.

Try installing autoconf

brew install autoconf

Regards

This might be an old post, but for me, I found the easiest option was to install PHP using the liip service (http://php-osx.liip.ch/). Using one simple command, it installed the latest version of PHP, configured it with the existing apache server installed on my mac all along with the intl extension. A number of hours frustration solved in a couple of minutes!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top