Skip to content

Instantly share code, notes, and snippets.

@gsilano
Last active January 3, 2020 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsilano/a78914c4e1d30d744c2ecfca4bce52c6 to your computer and use it in GitHub Desktop.
Save gsilano/a78914c4e1d30d744c2ecfca4bce52c6 to your computer and use it in GitHub Desktop.
Recover protobuf 2.6.1 on Ubuntu 16.04
# Remove the newest version of the software
cd /usr/local/include/google

sudo rm -rf protobuf

# Go to https://github.com/protocolbuffers/protobuf/releases?after=v3.0.0-alpha-1 
# and download protobuf-2.6.1. Then, extract the contents. I downloaded 
# protobuf-2.6.1.tar.gz
cd ~/Download/protobuf-2.6.1
./autogen.sh

./configure

make

make check

sudo make install

sudo ldconfig

# Check if everything is ok
protoc --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment