Skip to content

mac m1 安装protoc报错 #153

Open
Open
@cjhlai

Description

@cjhlai

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文件确实有的
应该怎么源码安装呀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions