其他分享
首页 > 其他分享> > macOS 安装 tesseract

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

成功安装

 

标签:macOS,Aug,tar,gz,webp,2021,bottle,tesseract,安装
来源: https://www.cnblogs.com/mrlonely2018/p/15174983.html