shivammathur / homebrew-php

:beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.

Home Page:https://github.com/shivammathur/homebrew-php/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libraries not loaded for php@5.6

rikiless opened this issue · comments

Using php@5.6 with brew not working more. I got multiple errors like this:

dyld[12266]: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.68.dylib
  Referenced from: /usr/local/Cellar/php@5.6/5.6.40.reinstall/bin/php

Seems I have updated versions of following libraries to version 69 and php@5.6 requires v 68.

/usr/local/opt/icu4c/lib/libicuio.68.dylib
/usr/local/opt/icu4c/lib/libicudata.68.dylib
/usr/local/opt/icu4c/lib/libicuuc.68.dylib
/usr/local/opt/icu4c/lib/libicui18n.68.dylib

How to fix this?

The problems started after error dyld: Library not loaded: /usr/local/opt/tidy-html5/lib/libtidy.5.dylib which I "resolved" with symlinking the existing updated path.

All formulae in the tap were updated to use icu4c 69.1 in Oct last year.

Run brew update and reinstall php@5.6 along with its dependencies. That should fix it.

brew update
brew reinstall $(brew deps shivammathur/php/php@5.6) shivammathur/php/php@5.6

Thanks. I also needed brew reinstall tidy-html5 as mentioned in #404.