Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How install intl extension on MacOS and enable it on XAMPP #26

Open
lsantaniello opened this issue Oct 4, 2024 · 0 comments
Open

How install intl extension on MacOS and enable it on XAMPP #26

lsantaniello opened this issue Oct 4, 2024 · 0 comments

Comments

@lsantaniello
Copy link

Environment:

O.S.: macOS Sonoma 14.5
Xampp: 8.2.4-0

PHP Version:

php --version
PHP 8.2.4 (cli) (built: Apr  6 2023 04:12:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies

Tried to install package using brew:

sudo pecl install intl

But this command fails. This is the last part of error log

/private/var/tmp/pear/temp/intl/collator/collator_sort.h:23:39: note: to match this '('
typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 TSRMLS_DC );
                                      ^
In file included from /private/var/tmp/pear/temp/intl/php_intl.c:25:
/private/var/tmp/pear/temp/intl/php_intl.h:33:10: fatal error: 'unicode/ubrk.h' file not found
#include <unicode/ubrk.h>
         ^~~~~~~~~~~~~~~~
2 errors generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed

During installation, script ask me:

Specify where ICU libraries and headers can be found [DEFAULT] : 

I click ENTER...a

Please help me to found a solution. I need to enable "Local" Class for my Application:

Fatal error: Uncaught Error: Class "Locale" not found

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant