Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SarahS's avatar
Level 12

PHP issues

I tried to install a new Laravel app this morning and I got a message saying it needed php 7.3. So I tried to install php 7.3 and now when I check to see what version I have I get:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
zsh: abort      php -v

I've looked around for answers but seem to be going around in circles. Any help would be great. Thanks.

0 likes
2 replies
SarahS's avatar
Level 12

OK so I tried to go back to 7.2 by unlinking and relinking and I get this:

Unlinking /usr/local/Cellar/php/7.3.9_1... 24 symlinks removed
sarah@MacBook-Pro projects % brew link [email protected]
Warning: [email protected] is keg-only and must be linked with --force

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

so out of curiosity I tried to see what version I had and now suddenly I get:

PHP 7.3.11 (cli) (built: Apr 17 2020 19:14:14) ( NTS )

So I tried another new app and get:

In NewCommand.php line 45:
                                                                            
  The Zip PHP extension is not installed. Please install it and try again.  

So now what do I do?

SarahS's avatar
SarahS
OP
Best Answer
Level 12

Well I tried all sorts of things and finally something worked!

Please or to participate in this conversation.