Install/activate PHP "intl" extension running MAMP

Manne W picture Manne W · Mar 29, 2011 · Viewed 28.8k times · Source

Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.

The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.

I've also "googled my ass of" but can't find any hints.

Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?

I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)

Answer

antoine129 picture antoine129 · Jan 3, 2013

The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from

/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so

to

/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so

Worked like a charm for me for PHP 5.4