protoc 在哪里以及如何安装它? [英] Where is protoc and how do i install it?
问题描述
我想用protoc
命令生成java文件
I'd like to use the protoc
command to generate java files
我一直在遵循 github 中 README 中的说明 https://github.com/protocolbuffers/protobuf 但它只是告诉您下载 zip 文件并且二进制文件"已经包含在内.但是,在下载最新的(和其他几个版本)并解压缩文件后,我找不到protoc"二进制文件.
I've been following the instructions in the README from github https://github.com/protocolbuffers/protobuf but it just tells you to download the zip file and that the "binary" is already included. However, after downloading the latest (and a couple other versions) and unzipping the files, I can't find the "protoc" binary.
还有其他我应该遵循的遗漏说明吗?
Is there some other missing instruction that i'm supposed to follow?
附言我使用的是 Mac OS X
P.S. i'm using Mac OS X
推荐答案
打开 https://github.com/protocolbuffers/protobuf/releases 并查找 32 位或 64 位 OS X 的二进制文件:
Open https://github.com/protocolbuffers/protobuf/releases and look for the binary for 32- or 64-bit OS X:
- protoc-3.6.1-osx-x86_32.zip
- protoc-3.6.1-osx-x86_64.zip
这篇关于protoc 在哪里以及如何安装它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!