AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 788594
Accepted
Kamil
Kamil
Asked: 2024-12-24 04:06:06 +0800 CST2024-12-24 04:06:06 +0800 CST 2024-12-24 04:06:06 +0800 CST

由于未知原因,tlrc 无法在 Mac 上使用 Homebrew

  • 772

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)
macos
  • 1 1 个回答
  • 10 Views

1 个回答

  • Voted
  1. Best Answer
    Kusalananda
    2024-12-24T04:29:14+08:002024-12-24T04:29:14+08:00

    该命令名为。您发布的输出部分tldr已暗示了这一点。Conflicts withbrew info

    它还显示在输出中brew list tlrc:

    % brew list tlrc
    /opt/homebrew/Cellar/tlrc/1.9.3/.crates.toml
    /opt/homebrew/Cellar/tlrc/1.9.3/.crates2.json
    /opt/homebrew/Cellar/tlrc/1.9.3/bin/tldr
    /opt/homebrew/Cellar/tlrc/1.9.3/etc/bash_completion.d/tldr
    /opt/homebrew/Cellar/tlrc/1.9.3/sbom.spdx.json
    /opt/homebrew/Cellar/tlrc/1.9.3/share/fish/vendor_completions.d/tldr.fish
    /opt/homebrew/Cellar/tlrc/1.9.3/share/man/man1/tldr.1
    /opt/homebrew/Cellar/tlrc/1.9.3/share/zsh/site-functions/_tldr
    

    注意这个/opt/homebrew/Cellar/tlrc/1.9.3/bin/tldr条目。安装后,它会自动链接到 Homebrewbin目录,因此应该位于你的路径中。

    % type -a tldr
    tldr is /opt/homebrew/bin/tldr
    

    您不需要安装 Rust 即可使用tldr。如果您需要重新构建二进制文件,则只需安装 Rust,在这种情况下,Homebrew 会为您安装它(它是构建依赖项,而不是运行时依赖项)。

    • 1

相关问题

  • 如何在 Mac OS 上安装 cgroups

  • 当我从命令行创建帐户时,我无法使用 login 命令登录该帐户

  • macOS 上的 mktemp 不支持 $TMPDIR

  • MacOS 上的任何软件包中是否提供 NetBSD“primes”实用程序或等效程序?

  • macOS 10.13.4 - `renice` 似乎没有效果

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve