详细出错信息:
xideMacBook-Pro:~ xi$ brew install opencv
Warning: No available formula with the name "opencv".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
解决方法:
xideMacBook-Pro:~ xi$ rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
xideMacBook-Pro:~ xi$ brew update
然后再执行安装命令:
xideMacBook-Pro:~ xi$ brew install opencv
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1269148, done.
remote: Counting objects: 100% (140/140), done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 1269148 (delta 82), reused 127 (delta 74), pack-reused 1269008
Receiving objects: 100% (1269148/1269148), 512.88 MiB | 2.72 MiB/s, done.
Resolving deltas: 100% (875122/875122), done.
Tapped 3 commands and 6283 formulae (6,626 files, 561.8MB).
==> Downloading https://ghcr.io/v2/homebrew/core/eigen/manifests/3.4.0_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/eigen/blobs/sha256:211fd7f1d58b383e3d64335c08a376a7d8433007ce61410ead032
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:211fd7f1d58b383e3d64335c08a376a7d843
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gflags/manifests/2.2.2-1
......
完美解决。