zoukankan      html  css  js  c++  java
  • macOS 安装 tesseract

    brew install tesseract 报错:

    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/webp-1.2.0.big_sur.
    #=#=#                                                                         
    curl: (22) The requested URL returned error: 404 
    Warning: Bottle missing, falling back to the default domain...
    
    tar: Error opening archive: Failed to open '/Users/tonyyan/Library/Caches/Homebrew/downloads/561530460814c6da8e21ef67569a57620f19b64ed573dad2394ebd62e084726c--webp-1.2.0.big_sur.bottle.tar.gz'
    Error: Failure while executing; `tar --extract --no-same-owner --file /Users/tonyyan/Library/Caches/Homebrew/downloads/561530460814c6da8e21ef67569a57620f19b64ed573dad2394ebd62e084726c--webp-1.2.0.big_sur.bottle.tar.gz --directory /private/tmp/d20210823-11903-qf59jg` exited with 1. Here's the output:
    tar: Error opening archive: Failed to open '/Users/tonyyan/Library/Caches/Homebrew/downloads/561530460814c6da8e21ef67569a57620f19b64ed573dad2394ebd62e084726c--webp-1.2.0.big_sur.bottle.tar.gz'

    打开 https://mirrors.ustc.edu.cn/homebrew-bottles/ , 发现没有

    webp-1.2.0.big_sur.

    只有 :

    webp-1.2.1.arm64_big_sur.bottle.tar.gz             14-Aug-2021 12:08              770616
    webp-1.2.1.big_sur.bottle.tar.gz                   14-Aug-2021 12:08              901172
    webp-1.2.1.catalina.bottle.tar.gz                  14-Aug-2021 12:08              903171
    webp-1.2.1.mojave.bottle.tar.gz                    14-Aug-2021 12:08              884779
    webp-1.2.1.x86_64_linux.bottle.tar.gz              14-Aug-2021 12:08             1065224
    webpack-5.51.1.arm64_big_sur.bottle.tar.gz         20-Aug-2021 13:17            44093372
    webpack-5.51.1.big_sur.bottle.tar.gz               20-Aug-2021 13:17            44091661
    webpack-5.51.1.catalina.bottle.tar.gz              20-Aug-2021 13:17            44091661
    webpack-5.51.1.mojave.bottle.tar.gz                20-Aug-2021 13:17            44091596
    webpack-5.51.1.x86_64_linux.bottle.tar.gz          20-Aug-2021 13:17            44079816

    解决方法: 把中科大的源换成阿里云:

    vi ~/.zprofile
    export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles
    source ~/.zprofile
    brew install tesseract

    成功安装

  • 相关阅读:
    从零搭建一个IdentityServer——项目搭建
    自学是门手艺-准备好好读读这本书
    Python学习路径
    如何查看一套Android代码的版本
    用tmux让程序在ssh退出后保持运行
    AOSP patch
    The Update Engine Action System
    职 工 养 老 保 险 转 移—陕西省外转入
    uml资料
    ABOTA资料汇集
  • 原文地址:https://www.cnblogs.com/mrlonely2018/p/15174983.html
Copyright © 2011-2022 走看看