MacOS下brew install报Error: No such file or directory错误

Posted by Geuni's Blog on January 4, 2022

用brew install的命令时,发生Error: No such file or directory ***的错误。

每次MacOS系统更新后,Homebrew都会发生一些问题,一般重装后即可解决。

1
Error: No such file or directory @ rb_sysopen - /Users/geuni/Library/Caches/Homebrew/downloads/9c91a337f95d642c3eed905e43f8aa6dd50903ba990691c3001570277ad1ccd2--gdbm-1.21_1.monterey.bottle.tar.gz

执行如下命令,重装Homebrew:

1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

homebrew_install