如何在自制软件中安装特定版本的公式?例如,postgresql-8.4.4而不是最新的9.0.
我使用自制程序(Mojave)安装节点,然后php停止工作,如果我尝试运行php -vi得到此错误:
php -v
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Run Code Online (Sandbox Code Playgroud)
我试图卸载节点和icu4c,但问题仍然存在
对于我的项目,我需要安装特定版本的 icu4c 软件包。我曾经按照这个答案中写的说明进行操作,并且它有效。然而,最近,当我需要做同样的事情时,它失败并出现以下错误
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
Run Code Online (Sandbox Code Playgroud)
经过一番调查,我得出的结论是brew有新风格的.rb文件,旧版本可能不兼容。为了解决这个问题,我运行了brew style --fix icu4c.rb这似乎可以解决样式问题。但是,现在我收到以下错误:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
Run Code Online (Sandbox Code Playgroud)
我在很多地方看到这可能是由于curl 或xcode 命令行工具造成的。我更新了它们,但无法进一步进行。任何帮助将不胜感激。