Can't install php Intl extension on MacosX
ICU stands for ICU - International Components for Unicode
Install it with brew
brew update
brew search icu # returns 'icu4c'
brew install icu4c
OR
Install it with pecl
sudo pecl update-channels
sudo pecl install intl
installing intl package on osx
php intl extension missing
Your problem is NOT that the extension is not enabled (it IS).
Your problem is this:
dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/intl.so
This path and/or file just does not exist. Check the ini for the "extension_dir" folder setting. Locate the proper folder and adjust the "extension_dir" folder setting accordingly.
Install PHP Internationalization extension (Intl) on XAMPP on Mac
Installing "intl" extension on OSX.
- Normally, the PHP is automatically installed on OSX.
So, if you would like to use the XAMPP, or whatever apache server, you must change the path point to XAMPP. You can check the path by using:
$ which php
You should get
/Applications/XAMPP/xamppfiles/bin/php
if 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}"
- Now, it's time to install intl. Firstly, you need to install icu4c
$ brew install icu4c
It takes a couple of times and returns its path to you, should look something like this:
/usr/local/Cellar/icu4c/x.x.x
- Next, let's install intl by using pecl
$ sudo pecl update-channels
$ sudo pecl install intl
It will prompt you to put the icu4c path.
After finish installing icu4c, put the following statement to php.ini
extension=intl.so
- Restart apache. and check whether it's neatly installed.
$ php -m | grep intl
should return 'intl'
That's it!
Related Topics
How to Get Filename from a Variable (Url) in PHP
How to Stop My PHP Form Resubmitting Input After Page Refresh
Dynamically Display a CSV File as an HTML Table on a Web Page
Display Data from Database to Dropdown Codeigniter
Showing Image Binary Data Using JavaScript
How to Set Variables in a Laravel Blade Template
Convert Accented Characters to Their Plain Ascii Equivalents
How to Resolve MySQL Port 3306 Error on Wamp
Generate Preview Image from Video File
How to Add Class to Link in Wp_Nav_Menu
Combining 'Where' and 'Like' Statements by Using the Ci Activerecords
Setting Selected Option in Laravel Form
How to Update Multiple Select Box Values in PHP MySQL
Remove/Hide Woocommerce Added to Cart Message But Keep/Display Coupon Applied Message
Encoding CSV File With Arabic Content