Skip to content

Instantly share code, notes, and snippets.

@prabowomurti
Last active September 27, 2024 03:21
Show Gist options
  • Save prabowomurti/8199493c21bdf5dae6aaea56a0bdd4b4 to your computer and use it in GitHub Desktop.
Save prabowomurti/8199493c21bdf5dae6aaea56a0bdd4b4 to your computer and use it in GitHub Desktop.
dyld: Library not loaded: @loader_path/../../../../opt/icu4c/lib/libicui18n.73.dylib

Getting some strange error while brew upgrade / brew install php8.2-debug

dyld: Library not loaded: @loader_path/../../../../opt/icu4c/lib/libicui18n.73.dylib

getting version 73.x

wget -c https://raw.githubusercontent.com/Homebrew/homebrew-core/74261226614d00a324f31e2936b88e7b73519942/Formula/i/icu4c.rb brew install icu4c.rb

This doesn't work (reinstall PHP after this will still update the icu4c to the version 74.2 of icu4c

reinstall PHP

brew reinstall shivammathur/php/[email protected]

doesn't work with the same erorr (can not link the icu4c to the latest version)

reinstall icu4c while ignoring dependencies

brew uninstall --ignore-dependencies --force icu4c
brew install icu4c
brew unlink icu4c && brew link icu4c --force

doesn't work, can not link since the Error is :

Error: You are using macOS 11.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Do not report this issue: you are running in an unsupported configuration.

return to php 8.1

works

brew install shivammathur/php/[email protected]
brew unlink [email protected]
brew link --overwrite [email protected]
php -v
PHP 8.1.29 (cli) (built: Sep 26 2024 23:05:55) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.29, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies

homework : reconfigure node

node -v
dyld: Library not loaded: @loader_path/../../../../opt/icu4c/lib/libicui18n.73.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
Abort trap: 6

Update 2024-09-27

Brew somehow doesn't give any error related to the reinstall command. Is that because I install the [email protected] first?

brew reinstall [email protected]
brew unlink [email protected]
brew link --overwrite [email protected]

php -v
PHP 8.2.23 (cli) (built: Sep 27 2024 03:11:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.23, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.23, Copyright (c), by Zend Technologies

brew services start shivammathur/php/[email protected]

Another weird behavior from the old machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment