我的主要目标是为nano进行语法突出显示。显然,我的nano似乎是pico5.09而不是nano。运行纳米,返回:
/usr/bin/nano然后我尝试用brew安装真正的nano,在那里我得到了一个错误:
Warning: Treating nano as a formula. For the cask, use homebrew/cask/nano
Error: nano dependencies not built for the arm64 CPU architecture:
gettext was built for x86_64我认为brew看起来像合法的手臂版本。
which brew
/opt/homebrew/bin/brew我能做些什么来获得Nano语法高亮的最终结果呢?
发布于 2022-09-16 20:58:47
如果您的brew依赖关系已过时,则可能会发生这种情况。
% brew update && brew upgrade && brew install nano
Already up-to-date.
...
% brew install nano
Warning: Treating nano as a formula. For the cask, use homebrew/cask/nano
==> Downloading https://ghcr.io/v2/homebrew/core/nano/manifests/6.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nano/blobs/sha256:7206f1c20ac7f
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring nano--6.4.arm64_monterey.bottle.tar.gz
==> nano cask is installed, skipping link.
/opt/homebrew/Cellar/nano/6.4: 103 files, 3.2MB
==> Running `brew cleanup nano`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).https://stackoverflow.com/questions/73429600
复制相似问题