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
    • 最新
    • 标签
主页 / computer / 问题 / 1762011
Accepted
Abh
Abh
Asked: 2023-01-10 14:36:06 +0800 CST2023-01-10 14:36:06 +0800 CST 2023-01-10 14:36:06 +0800 CST

在 macOS 中使用 Homebrew 时没有名称为“testdisk”的可用公式

  • 772

当我尝试安装 Testdisk 时,我收到错误消息 -“没有名为“testdisk”的可用公式。

我已经安装了满足所有标准的 brew:

  1. 64 位中央处理器
  2. macOS 蒙特利英特尔系统
  3. 也为 Xcode 安装了命令行工具。

在 Mac 上使用 Brew 在终端上安装:

$ brew install testdisk
Warning: No available formula with the name "testdisk".
==> Searching for similarly named formulae and casks...
==> Casks
texstudio
To install texstudio, run:
 brew install --cask texstudio
$

有没有人遇到过类似的问题?有人可以建议如何解决这个问题以便我可以安装 testdisk 吗?

请注意,已经进行了 brew 更新。

$ brew update
Updated 1 tap (homebrew/cask).
homebrew
  • 1 1 个回答
  • 23 Views

1 个回答

  • Voted
  1. Best Answer
    nicepen
    2023-01-10T17:51:15+08:002023-01-10T17:51:15+08:00

    选项1:

    检查brew doctor更新和错误,然后重新安装您的自制软件核心,其中包括所有公式。

    $ rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
    $ brew tap homebrew/core
    

    选项 2:

    将您的 testdisk.rb 文件与 github 上发布的文件进行比较。

    打开你的:

    $ sudo nano /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/testdisk.rb
    

    比较:https ://github.com/Homebrew/homebrew-core/blob/master/Formula/testdisk.rb

    class Testdisk < Formula
      desc "Powerful free data recovery utility"
      homepage "https://www.cgsecurity.org/wiki/TestDisk"
      url "https://www.cgsecurity.org/testdisk-7.1.tar.bz2"
      sha256 "1413c47569e48c5b22653b943d48136cb228abcbd6f03da109c4df63382190fe"
      license "GPL-2.0"
    
      livecheck do
        url "https://www.cgsecurity.org/wiki/TestDisk_Download"
        regex(/href=.*?testdisk[._-]v?(\d+(?:\.\d+)+)\.t/i)
      end
    
      bottle do
        rebuild 1
        sha256 cellar: :any_skip_relocation, arm64_ventura:  "9c9177b918d95f4c07dba4f487fea6702c0625bcc7dcd9f0b160ff9629ed900f"
        sha256 cellar: :any_skip_relocation, arm64_monterey: "40b8a4f36f57b849119b447259f492466b2d297d9f178643875dc709a2abe419"
        sha256 cellar: :any_skip_relocation, arm64_big_sur:  "02338490d4e16fa0a61e422ec36ce72e97ad1d24406cda45f4d61396ba4cab36"
        sha256 cellar: :any_skip_relocation, ventura:        "a7b64ba8b86976141a53ec77522fbcb58be4ac475bc70056b2bec1565c8ead64"
        sha256 cellar: :any_skip_relocation, monterey:       "bc5bf54d38d9f237ac6de913cdf9f841e77876b63f69c5f0b380f9f095242d2f"
        sha256 cellar: :any_skip_relocation, big_sur:        "325a572e2238e551d8415f58a463d80619850a9026b614d0c23da46838f2e9ea"
        sha256 cellar: :any_skip_relocation, catalina:       "b0035f42c03dbbe94000ae373b1a8c5f9bbb6f9534ea3d64b5754475ee8fbc7b"
        sha256 cellar: :any_skip_relocation, mojave:         "7431beee8948638cadaf5b7f439e32f798955caf403fdcfda5c9948afa5af3cc"
        sha256 cellar: :any_skip_relocation, x86_64_linux:   "1d22006b793a33a7cde952b4323410fea06ab20d49126159eccc6d187c7d0061"
      end
    
      uses_from_macos "ncurses"
    
      on_linux do
        depends_on "util-linux"
      end
    
      def install
        system "./configure", "--disable-debug",
                              "--disable-dependency-tracking",
                              "--disable-silent-rules",
                              "--prefix=#{prefix}"
        system "make", "install"
      end
    
      test do
        path = "test.dmg"
        cp test_fixtures(path + ".gz"), path + ".gz"
        system "gunzip", path
        system "#{bin}/testdisk", "/list", path
      end
    end
    

    选项 3:

    万一您的 testdisk.rb 文件丢失/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/

    你可以

    $ cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
    $ wget https://github.com/Homebrew/homebrew-core/raw/master/Formula/testdisk.rb
    
    • 0

相关问题

  • GCC 不适用于 macOS Majave?

  • 使用 brew cask 在 macOS 上重新安装应用程序的脚本

  • 节点在全球范围内工作,但在 brew install yarn 之后不在特定目录中

  • 无法通过 Homebrew 安装特定版本的 VirtualBox:“Brew:找到了一个名为‘[email protected]’的木桶”

  • Brew 安装 R:权限被拒绝

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve