一种解决方法 Error: No such file or directory @ rb_sysopen

  • Post author:
  • Post category:其他


brew下载 graphviz 时,不成功,发现最后报错:

Error: No such file or directory @ rb_sysopen – /Users/xx/Library/Caches/Homebrew/downloads/520630cf4036c55fb3574339afd8aba45c6f18a60f58369d0ca1dc4606c23269–harfbuzz-3.1.1.arm64_monterey.bottle.tar.gz


原因:是一个依赖包没有下载成功( libfido2-1.12.0.monterey.bottle.tar.gz)

解决:

用brew单独下载依赖包,就避免了找不到依赖版本的错误

brew install libfido2

其他:如果仍然不成功,可以尝试brew换源(比如从阿里源换到中科大源),可能会一步下载成功

作者:丶Assassin丨

链接:https://www.jianshu.com/p/f4139a05a3a4