homebrew安装常见错误解决
1.错误信息大致如下:
Error: Failure while executing; tar --extract --no-same-owner --file /Users/wangchuangyan/Library/C ......
2.错误主要集中在使用Mac执行brew install xxx时报错。
比如执行 brew install rabbitmq
会遇见的问题:
Error: Failure while executing; tar --extract --no-same-owner --file /Users/wangchuangyan/Library/Caches/Homebrew/downloads/01840f175b09e7eb3d4ca7f11492bb1bee74fa7569a41a884c7ffb3418e11a02--libuv-1.41.0.catalina.bottle.tar.gz --directory /private/tmp/d20210708-6134-w2f3oo exited with 1. Here’s the output: tar: Error opening archive: Failed to open ‘/Users/wangchuangyan/Library/Caches/Homebrew/downloads/01840f175b09e7eb3d4ca7f11492bb1bee74fa7569a41a884c7ffb3418e11a02–libuv-1.41.0.catalina.bottle.tar.gz’
意思是无法打开libuv文件
解决方案:手动安装,执行 brew install libuv
即可。