Homebrew upgrade drop php: dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib

2022-08-30 22:48:15

今天我升级了Homebrew,这导致PHP版本(7.2 - 7.3)被删除。每当我尝试重新安装它们时,都会显示以下错误:

dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib
Referenced from: /usr/local/opt/curl-openssl/bin/curl
Reason: image not found
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "php"
Download failed: https://www.php.net/distributions/php-7.3.9.tar.xz

有什么建议吗?


答案 1

好的,我已经通过安装这个库解决了这个问题brew install libpsl

然后重新安装 phpbrew reinstall php@7.2 --build-from-source

php@7.3 也是如此

请注意,重新安装 php 将重置所有 php 配置


答案 2

这是迁移到OpenSSH 1.1后的一个错误。无需安装 。phplibpsl

此问题已通过 pr-44048 修复。您应该卸载并重新安装 。libpslphp

brew uninstall libpsl
brew reinstall php

推荐