Created
August 5, 2020 17:05
-
-
Save lexod/fd2875029a1797e5821c7b66b33a49e3 to your computer and use it in GitHub Desktop.
PHP: icu4c version incompatibility fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sh icu4c.fix.sh YOUR_COMMIT_NUMBER | |
# look up for the version you need using 'brew log icu4c' and copy commit number($0) | |
git -C $(brew --repo homebrew/core) fetch --unshallow; | |
cd $(brew --repo homebrew/core); | |
git checkout $0 -- Formula/icu4c.rb; | |
brew uninstall --ignore-dependencies icu4c; | |
brew install icu4c; | |
git reset && git checkout . ; | |
cd -; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew services stop php@7.2; | |
brew unlink php@7.2; | |
brew link --fore php@7.1; | |
brew switch icu4c 64.2; | |
brew services start php@7.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew services stop php@7.1; | |
brew unlink php@7.1; | |
brew link --fore php@7.2; | |
brew switch icu4c 67.1; | |
brew services start php@7.2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment