Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emergency Update with icu4c #1068

Closed
jyxjjj opened this issue Sep 6, 2022 · 5 comments
Closed

Emergency Update with icu4c #1068

jyxjjj opened this issue Sep 6, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@jyxjjj
Copy link

jyxjjj commented Sep 6, 2022

Describe the bug
icu4c from brew has been updated to 71 then php requesting to use 70

so it will broken with

dyld[28892]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicuio.70.dylib'
  Referenced from: '/opt/homebrew/Cellar/php/8.1.10/bin/php'
  Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicuio.70.dylib' (no such file), '/usr/local/lib/libicuio.70.dylib' (no such file), '/usr/lib/libicuio.70.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/71.1/lib/libicuio.70.dylib' (no such file), '/usr/local/lib/libicuio.70.dylib' (no such file), '/usr/lib/libicuio.70.dylib' (no such file)

PHP versions
7.3 7.4 8.0 8.1 and maybe more

To Reproduce
brew update && brew upgrade

Expected behavior
php -v
php 8.1.10

Screenshots/Logs
N/A

Additional context
N/A

Are you willing to submit a PR?
I don't know how to (for brews).

@jyxjjj jyxjjj added the bug Something isn't working label Sep 6, 2022
@jyxjjj
Copy link
Author

jyxjjj commented Sep 6, 2022

image
image
image

@jyxjjj
Copy link
Author

jyxjjj commented Sep 6, 2022

I searched Google that i found a lot of dependence error with this icu4c package.
I think it is not your fault and am very glad to use your package, it fixed that official PHP package doesn't support ARM64.

To temporary fix this error:

cd /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/fe6a2fe48c2abd7aee0636a5d25d9cdb7374686a/Formula/icu4c.rb
brew reinstall icu4c
brew pin icu4c
git restore icu4c.rb
brew update && brew upgrade

@jyxjjj
Copy link
Author

jyxjjj commented Sep 6, 2022

image

Ahhhhh, And i think these 4 issues are the same too. lol.

@shivammathur
Copy link
Owner

Working on this

@shivammathur
Copy link
Owner

@jyxjjj

All PHP formulae are now rebuilt with icu4c 71.1

If you get a Library not loaded error for icu4c libraries.
Please update the tap and upgrade the PHP formula.

For example for PHP 8.0.

brew update 
brew upgrade shivammathur/php/php@8.0

Please do not pin the icu4c version from older commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants