$ which phpYou should get
/Applications/XAMPP/xamppfiles/bin/phpif not, you will get
/usr/bin/php.This is OSX' php. So, you have to change it by using:
$ PATH="/Applications/XAMPP/xamppfiles/bin:${PATH}"2. Now, it's time to install `intl`. Firstly, you need to install `icu4c`
$ brew install icu4cIt takes a couple of times and returns its path to you, should look something like this:
/usr/local/Cellar/icu4c/x.x.x3. Next, let's install `intl` by using `pecl`
$ sudo pecl update-channels
$ sudo pecl install intlIt will prompt you to put the `icu4c` path.
After finish installing `icu4c`, put the following statement to `php.ini`
extension=intl.so4. Restart apache. and check whether it's neatly installed.
$ php -m | grep intl #should return 'intl'That's it!
No comments:
Post a Comment