admin管理员组

文章数量:1618705

Mac安装Apache http服务器,brew install httpd 时报错

报错信息如下:

==> Installing httpd dependency: nghttp2

==> Pouring nghttp2-1.44.0.big_sur.bottle.tar.gz

tar: Error opening archive: Failed to open '/Users/zhaopengkang/Library/Caches/Homebrew/downloads/727a7b871748b95a1fa9008831d439c4f999a5d065e3da3fe1e80b82d53c3e07--nghttp2-1.44.0.big_sur.bottle.tar.gz'

Error: Failure while executing; `tar --extract --no-same-owner --file /Users/zhaopengkang/Library/Caches/Homebrew/downloads/727a7b871748b95a1fa9008831d439c4f999a5d065e3da3fe1e80b82d53c3e07--nghttp2-1.44.0.big_sur.bottle.tar.gz --directory /private/tmp/d20211015-52303-1xq0k1l` exited with 1. 

 报错意思是:打开存档文件报错727a7b871748b95a1fa9008831d439c4f999a5d065e3da3fe1e80b82d53c3e07--nghttp2-1.44.0.big_sur.bottle.tar.gz,然后 运行tar命令又给你备份一下。

 所有类似的这种情况,直接手动安装 brew install XXX,然后重新执行之前的命令就行。

 我这报错运行brew install nghttp2,重新执行 brew install httpd,安装成功问题解决。

本文标签: 报错系统brewMacinstall