I'm having problems installing the intl extension for PHP

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

I'm having problems installing the intl extension for PHP

Postby YousufSSyed » 15. August 2021 00:59

I'm trying this tutorial: https://newbedev.com/php-intl-installation-on-xampp to get the extension installed, but when I try this command:
Code: Select all
sudo pecl install intl
, and got this output:

Code: Select all
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/pear/temp/intl/php_intl.h:33:10: fatal error: 'unicode/ubrk.h' file not found
#include <unicode/ubrk.h>
         ^~~~~~~~~~~~~~~~
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed


After looking things up online, I found that I need icu4c installed. I already had, but reinstalled it with brew reinstall icu4c, but I still get the error, what should I do?
YousufSSyed
 
Posts: 3
Joined: 13. July 2020 02:07
XAMPP version: 7.47
Operating System: Windows 10 1909

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 27 guests