对于我的项目,我需要安装特定版本的 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 命令行工具造成的。我更新了它们,但无法进一步进行。任何帮助将不胜感激。
| 归档时间: |
|
| 查看次数: |
1450 次 |
| 最近记录: |