我正在学习如何在Macbook Pro/ macOS Big Sur / 11.6.8上使用gRPC和GOLANG,使用Protocol Buffer Compiler Installation页面上的说明,其中指示读者使用curl
下载protoc
编译器归档文件,并使用unzip
扩展归档文件。我正在执行以下命令序列:
curl -LO https://github.com/protocolbuffers/protobuf/releases/protoc-21.4-osx-universal_binary.zip
unzip protoc-21.4-osx-universal_binary.zip -d /Users/rodrigosilveira/.local
解压缩执行失败,并显示以下消息:
Archive: protoc-21.4-osx-universal_binary.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of protoc-21.4-osx-universal_binary.zip or
protoc-21.4-osx-universal_binary.zip.zip, and cannot find protoc-21.4-osx-universal_binary.zip.ZIP, period.
调试说明:
不使用curl即可解压缩
- 访问Protocol Buffers v21.4页面
- 双击
protoc-21.4-osx-universal_binary.zip
文件, unzip
以展开我的本地Downloads
文件夹中的protoc-21.4-osx-universal_binary.zip
存档
现有销售订单答案没有帮助- Unziping zipped file in google colab
- Using cURL to upload POST data with files
- End-of-central-directory signature not found
- can't download github project with curl command
1条答案
按热度按时间0dxa2lsx1#
此实用程序的当前URL为
前一个返回“Not found”,这就是您得到此
zip
错误的原因