How to compile & install protobuf without sudo
Here’s how you can compile & install protobuf with sudo permissions on a Linux system where you don’t have root
access. We’ll install protobuf in $HOME/usr
in this example.
git clone -b v28.3 https://github.com/protocolbuffers/protobuf.git
git submodule update --init --recursive
cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr .
make -j8 install