


fault_locale => no value => no valueĭone! Now you have Intl library installed and working on your MAMP installation! Now, let’s try Intl extension on the “battle field” Now, save the php.ini and restart MAMP and verify that Intl extension is properly loaded: $ php -i | grep "Internationalization support"Īnd, if you like, check also $ php -i | grep "intl" So, open it with your favorite editor and find the line Extensions.Īt the end of the section simply add the line extension=intl.so. Loaded Configuration File => /Applications/MAMP/bin/php/php5.6.6/conf/php.ini To know which php.ini your Terminal is using, type in Terminal itself: $ php -i | grep "php.ini"Ĭonfiguration File (php.ini) Path => /Applications/MAMP/bin/php/php5.6.6/conf If you have configured you MacOSX Terminal to use the same PHP binaries of MAMP, then you have to go to /Applications/MAMP/bin/php/phpX.X.X/conf/php.ini. Now the easy last part: activate your new Intl extension in your php.ini.
#MAMP PRO TROUBLESHOOTING INSTALL#
Troubleshooting: php_intl.lo ERROR: ‘make’ failedĪs pointed out here, you have to install XCode Command Line Tools and create symlinks between XCode and MAMP. Then you have to install Autoconf before you can run the Intl installation. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. If you receive an error that says something likeĬannot find autoconf. Now install the Intl binaries in PHP: $ sudo pecl install intl Troubleshooting: Error “Cannot find autoconf” This process may require some minutes and during the process you will be asked to provide the Admin password. So, move into the icu/source folder and compile and install the binaries: $ cd icu/source Now that you have the ICU binaries, you have to install them. $ tar xzvf icu4c-4_8_1_1-src.tgz STEP 2: Compile the binaries
#MAMP PRO TROUBLESHOOTING DOWNLOAD#
On the download page you’ll find binaries for the major platforms and the source code: be sure to download the source code, and NOT the binaries. Go to ICU Project download page and grab the latest version. STEP 1: Download ICU binaries and uncompress them Install Autoconf so you can run the Intl installation (more about this later). Yes, they are 2 separate binaries packages! Verify you’ve Installed XCode and its Command Line Toolsīefore you can install Intl binaries, you have to install xCode Command Line Tools. Instead you have to install Intl both for the PHP used by Terminal – the one shipped with MacOSX – and for the PHP used by your browsers – the one shipped with MAMP. STEP 0: Before to start, verify your environment Verify which version of PHP are you running in Terminalīefore you install ICU binaries, check that your Terminal is using the PHP binaries provided by MAMP. It is also required by some advanced framework as Symfony to work with international values. It is really useful, as, with it, you can, for example, manage currencies and money values in the simplest way possibile (examples at the end of this post).

Is a wrapper for » ICU library, enabling PHP programmers to perform » UCA-conformant collation and date/time/number/currency formatting in their scripts.
