Skip to content

Instantly share code, notes, and snippets.

@jambonn
jambonn / protobuf-mac-os.md
Last active April 27, 2021 16:11
Installing the Protobuf Compiler on a Mac
1. Download the appropriate release here:
https://github.com/protocolbuffers/protobuf/releases/tag/v3.5.1 <protobuf-all-3.5.1.tar.gz>
2. Unzip the folder
3. Enter the folder and run ./autogen.sh && ./configure && make
4. If you run into this error: autoreconf: failed to run aclocal: No such file or directory, run brew install autoconf && brew install automake. And run the command from step 3 again.
5. Then run these other commands. They should run without issues
$ make check
$ sudo make install
$ which protoc
@jambonn
jambonn / protobuf-ubuntu-20-04.md
Last active October 26, 2023 07:50
How to Install Protobuf on Ubuntu 20.04
1. sudo apt-get install autoconf automake libtool curl make g++ unzip -y
2. Download the appropriate release here:
https://github.com/protocolbuffers/protobuf/releases/tag/v3.5.1 <protobuf-all-3.5.1.tar.gz
>
3. Unzip the folder
4. Enter the folder and run ./autogen.sh && ./configure && make
5. Then run these other commands. They should run without issues:
$ make check
$ sudo make install