簡體   English   中英

無法在 m1 Mac 上通過自制軟件安裝 nano

[英]Can't install nano via homebrew on m1 Mac

我的主要目標是為 nano 突出顯示語法。 顯然我的 nano 似乎是 pico 5.09 而不是 nano。 運行which 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 看起來像合法的 arm 版本。

which brew
/opt/homebrew/bin/brew

我能做些什么來獲得帶有語法突出顯示的 Nano 的最終結果?

如果您的 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`).

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM