zeromicro / zeromicro/zero-doc

mac m1 安装protoc报错

Open
#153 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
600
Forks
249
PR merge metrics
No merged PRs in 30d

Description

wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip
unzip protoc-3.14.0-linux-x86_64.zip
mv bin/protoc /usr/local/bin/

mac 64位的电脑,按上述步骤安装完protoc
在执行 goctl rpc protoc transform.proto --go_out=./pb --go-grpc_out=./pb --zrpc_out=.后,报错:sh: /usr/local/bin/protoc: cannot execute binary file
看了下, /usr/local/bin/protoc文件确实有的
应该怎么源码安装呀

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the installation instructions that lead to the wget, unzip, and mv commands, then reproduce the reported goctl rpc protoc invocation on the described Mac M1 setup. Done means the documentation explains the supported installation path for this platform and the example command can run without the reported executable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, documentation, tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.