相关疑难解决方法(0)

自制安装特定版本的公式?

如何在自制软件中安装特定版本的公式?例如,postgresql-8.4.4而不是最新的9.0.

versioning installation homebrew

2072
推荐指数
26
解决办法
105万
查看次数

dyld:库未加载:/usr/local/opt/icu4c/lib/libicui18n.62.dylib错误运行php afeter安装节点与brew在Mac上

我使用自制程序(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,但问题仍然存在

php macos homebrew node.js

207
推荐指数
17
解决办法
8万
查看次数

brew 安装特定版本的包失败

对于我的项目,我需要安装特定版本的 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 命令行工具造成的。我更新了它们,但无法进一步进行。任何帮助将不胜感激。

homebrew icu4c

5
推荐指数
0
解决办法
1450
查看次数

标签 统计

homebrew ×3

icu4c ×1

installation ×1

macos ×1

node.js ×1

php ×1

versioning ×1