brew install
我按照指示安装了软件包,READ.me
没有任何警告,然后安装了 rust,因为它缺少依赖项,但命令tlrc
仍然无法识别。以下是 brew info 的输出和命令的使用:
brew info tlrc
==> tlrc: stable 1.9.3 (bottled), HEAD
Official tldr client written in Rust
https://github.com/tldr-pages/tlrc
Conflicts with:
tealdeer (because both install `tldr` binaries)
tldr (because both install `tldr` binaries)
Installed
/opt/homebrew/Cellar/tlrc/1.9.3 (12 files, 2.3MB) *
Poured from bottle using the formulae.brew.sh API on 2024-12-14 at 09:50:31
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/t/tlrc.rb
License: MIT
==> Dependencies
Build: rust ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Analytics
install: 456 (30 days), 1,420 (90 days), 7,478 (365 days)
install-on-request: 456 (30 days), 1,420 (90 days), 7,478 (365 days)
build-error: 0 (30 days)
❯ tlrc h
zsh: correct 'tlrc' to 'tr' [nyae]? n
zsh: command not found: tlrc
rust
已经正确安装:
brew info rust
==> rust: stable 1.83.0 (bottled), HEAD
Safe, concurrent, practical language
https://www.rust-lang.org/
Installed
/opt/homebrew/Cellar/rust/1.83.0 (3,552 files, 312.8MB) *
Poured from bottle using the formulae.brew.sh API on 2024-12-14 at 09:56:51
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/r/rust.rb
License: Apache-2.0 OR MIT
==> Dependencies
Required: libgit2 ✔, libssh2 ✔, llvm ✔, openssl@3 ✔, pkgconf ✔, zstd ✔
==> Requirements
Required: macOS >= 10.12 (or Linux) ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Analytics
install: 38,074 (30 days), 106,686 (90 days), 460,024 (365 days)
install-on-request: 28,723 (30 days), 80,606 (90 days), 344,330 (365 days)
build-error: 248 (30 days)
该命令名为。您发布的输出部分
tldr
已暗示了这一点。Conflicts with
brew info
它还显示在输出中
brew list tlrc
:注意这个
/opt/homebrew/Cellar/tlrc/1.9.3/bin/tldr
条目。安装后,它会自动链接到 Homebrewbin
目录,因此应该位于你的路径中。您不需要安装 Rust 即可使用
tldr
。如果您需要重新构建二进制文件,则只需安装 Rust,在这种情况下,Homebrew 会为您安装它(它是构建依赖项,而不是运行时依赖项)。