Welcome Guest, Not a member yet? Register   Sign In
M1 Chip MacOS php intl extension error
#11

(07-16-2021, 02:42 PM)ihaveerror Wrote:
(07-14-2021, 06:06 AM)includebeer Wrote:
(07-13-2021, 05:04 PM)donpwinston Wrote:
(07-13-2021, 12:16 PM)includebeer Wrote: Aren’t DLL for Windows only? I’m pretty sure it’s a *.so file on macOS and Linux.

Yes. Also Apple is removing PHP from the Mac. We will eventually have to use MAMP or some other software to run PHP on a Mac.
Yes, I use MAMP on my Mac and it’s working “out of the box”. I didn’t have to install anything else.

I installed mamp but I still get an intl error.

You need to put the following line in ~/.zshrc if you are running php from the command line (Use the version you want, I'm using 7.4.9 at the moment).  I use MAMP Pro and it has the intl extension.

alias php=/Applications/MAMP/bin/php/php7.4.9/bin/php
Simpler is always better
Reply
#12

(07-16-2021, 02:42 PM)ihaveerror Wrote: I installed mamp but I still get an intl error.

That's weird. On the PHP Info page I can see "intl" is enabled by default. Nothing to edit in the config file. But I don't have an M1 chip. Maybe you have a different build that doesn't include intl?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#13

(07-04-2021, 09:32 AM)ihaveerror Wrote: Hello i have m1 chip mac, i want install codeigniter 4 but i get intl extension error. I am using xampp 8.0.7, i edited my php.ini(extension=php_intl.dll) but intl extension doesnt work rather not exist. Can u help me?

Install PHP via brew ( $ brew install php ), work for me.
Rimpun ~ Carvellho
Reply
#14

Hello,

I have installed the intl.so via port command, but I'm getting the following error when trying php -v so how can I get the x86_64 instead of arm64 although I'm using macbook pro M1

Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so, 0x0009): tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so' (no such file), '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so.so, 0x0009): tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/intl.so.so' (no su in Unknown on line 0
PHP 7.4.29 (cli) (built: May 13 2022 08:30:22) ( NTS )
Copyright © The PHP Group
Zend Engine v3.4.0, Copyright © Zend Technologies
    with Xdebug v3.1.5, Copyright © 2002-2022, by Derick Rethansv
Reply
#15

I have same problem. anyone solved it?
I couldn't find how to download x86_64 ver intl which suite on the below version

MacBook Air (M1, 2020)
macOS Monterey 12.1
PHP 8.2.0

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl, 0x0009): tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl' (no such file), '/usr/local/lib/intl' (no such file), '/usr/lib/intl' (no such file)), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl.so, 0x0009): tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/intl.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/intl.so' (no such file), '/usr/lib/intl.so' (no such file))) in Unknown on line 0
PHP 8.2.0 (cli) (built: Dec 29 2022 08:42:31) (NTS)
Copyright © The PHP Group
Zend Engine v4.2.0, Copyright © Zend Technologies
Reply




Theme © iAndrew 2016 - Forum software by © MyBB