Skip to content

Instantly share code, notes, and snippets.

@pacuna
Created December 26, 2020 22:00
Show Gist options
  • Select an option

  • Save pacuna/75a3b5628a368f3f8dff2761bc6dd3b8 to your computer and use it in GitHub Desktop.

Select an option

Save pacuna/75a3b5628a368f3f8dff2761bc6dd3b8 to your computer and use it in GitHub Desktop.

Revisions

  1. pacuna revised this gist Dec 26, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-protoc-macos-macports.sh
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,4 @@ cd protobuf-3.14.0
    ./configure
    make
    sudo make install
    go install google.golang.org/protobuf/cmd/protoc-gen-go # has to be outside of project with module, add $GOBIN to $PATH
    go install google.golang.org/protobuf/cmd/protoc-gen-go # run outside of project with module, add $GOBIN to $PATH
  2. pacuna created this gist Dec 26, 2020.
    9 changes: 9 additions & 0 deletions install-protoc-macos-macports.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    sudo port install automake libtool autogen autoconf
    wget https://github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz
    tar -xzvf protobuf-3.14.0.tar.gz
    cd protobuf-3.14.0
    ./autogen.sh
    ./configure
    make
    sudo make install
    go install google.golang.org/protobuf/cmd/protoc-gen-go # has to be outside of project with module, add $GOBIN to $PATH