INTL extension in Mac OS X

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

INTL extension in Mac OS X

Postby lpalacin » 21. December 2015 18:06

Hello,
I'm trying to use Cakephp under Xampp 5.5.30.6 and it seems that Intl extension doesn't works.
I have already uncommented int.dll in Php.ini
I have a Mac OS X 10.11.2.
Can someone help me? Thanks you.
lpalacin
 
Posts: 1
Joined: 21. December 2015 17:51
Operating System: Mac OS X 10.11.2

Re: INTL extension in Mac OS X

Postby crsss » 02. February 2016 02:54

Hi,
in OS X you must add the following line to your php.ini: extension="intl.so"
Do not write intl.dll since it is a windows only file type.
But first, check if xampp ships with intl.so. On my mac I had to build it on my own. Type intl.so into the search field of the finder, if no file is listed there is no extension php can load and it must be builded first.
crsss
 
Posts: 7
Joined: 02. February 2016 02:27
XAMPP version: 7.1.7
Operating System: macOS, Debian

Re: INTL extension in Mac OS X

Postby ttson24 » 04. June 2017 01:39

i use MAC version 10.12.5
php version:7.1.4
xampp version:7.1.4
i want add "extension=intl.so" in php.ini file(because i am using cakephp 3.4.7, this is required)
but after add that, i have error
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/intl.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/intl.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/intl.so, 9): image not found in Unknown on line 0
PHP 7.1.4 (cli) (built: May 10 2017 16:03:28) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

for this error, how do suite you do?
could you help me.
ttson24
 
Posts: 1
Joined: 04. June 2017 01:33
XAMPP version: 7.1.4
Operating System: MAC

Re: INTL extension in Mac OS X

Postby crsss » 16. August 2017 10:18

Hi,

there is no intl extension in the required folder on your mac, neither dll nor so file. But even if there were a dll file it probably wouldn't be loadable on a mac. I don't know why, but xampp on macos seems to have the extension not included.

If you have an intl.so file elsewhere on your mac copy it to folder '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303'. If not, you have to build it from php source code. I wrote in https://community.apachefriends.org/f/viewtopic.php?f=29&t=75044 how to do.
crsss
 
Posts: 7
Joined: 02. February 2016 02:27
XAMPP version: 7.1.7
Operating System: macOS, Debian


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 9 guests